Help - Search - Members - Calendar
Full Version: Backups
The Planet Forums > Control Panels > Plesk
Postal
cool.gif Plesk has a limited release of backup scripts.To those that care icon_razz.gif
Postal
The installation is easy and I will not explain it as The file has the documentation.

BACKUP

This give you all the commands

[root@server bin]# /usr/local/psa/bin/psadump -h



I Used This and it works great..

[root@server bin]# /usr/local/psa/bin/psadump -F -z -f /dev/tape
The folder that it stores it in is " dev " file name " tape "
This will store all files and configuration then gzip it.

When using the gzip command be aware that you will have to unzip it yourself. The restore is missing this feature. Just remove the " -z " to not gzip it
[root@server bin]# /usr/local/psa/bin/psadump -F -f /dev/tape


RESTORE



This give you all the commands

[root@server bin]# /usr/local/psa/bin/psarestore -h

I Used This and it works great..

[root@server bin]# /usr/local/psa/bin/psarestore -t -f /dev/tape -m ipmap ..

" -t " stands for test, to actually restore take the " -t " out

run it 3 times first and it will create the ip list that I called ipmap
Postal
Email me if you want them
res
Are domain users able to use these scripts also? It seems that this is just a domain wide script. (not a big deal, I would just like to find a solution for online backups for my domain users)

Regards,
res@acunett.com
AcuNett hosting services.
http://www.acunett.com/webhosting/
KyleKL
That sounds like very interesting, maybe you could do something with this script.. I found it on the Plesk forums... This creates a tar.gz file of all the directories under vhosts/... puts them all in /backups. It doesn't stop apache/MySQL/etc before doing the backup so its possible the backups can be corrupted if the files are being written to while its being backed up.. I think the official Plesk backup script takes care of that...

CODE
#!/bin/sh



CLIENTS_DIR=/usr/local/psa/home/vhosts/

LOCAL_BACKUP_DIR=/backups



CLIENTS=`ls -1 $CLIENTS_DIR`

for CLIENT in $CLIENTS

do

CLIENT_DIR="$CLIENTS_DIR/$CLIENT"

if [ -d $CLIENT_DIR ]

then

DATE=`date +%Y%m%d-%H%M`

TAR_FILE_NAME="$CLIENT.backup.$DATE.tar.gz"

TAR_FILE_PATH="$LOCAL_BACKUP_DIR/$TAR_FILE_NAME"

tar cfz $TAR_FILE_PATH $CLIENT_DIR

fi

done



# end
Postal
These are beta in the sence of the word. They are talking about incorporating them into the plesk panel.
res
Well, I think that I will probably just wait and see what happens. I will, however, still use the "beta" script in a crontab simply so I can have an off site backup as well as an on-site backup in the event that a hard drive dies, or if there is an act of god, or some other massive loss of data.

Question:

Do you know if these also backup the MySQL databases for each user? I haven't looked at the directory structure too much for plesk yet, and I do not know where the MySQL databases/Users are stored for plesk. If they are not backed up, I will begin writing a script that will back it all up, then I will pass the script back on down the line.

Regards,
res@acunett.com
AcuNett hosting services.
http://www.acunett.com/webhosting/
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.