D
DavidL
Guest
I just wanted to check if the option to do full server backups to remote FTP servers is back in this version. Didn't see anything in the release notes that indicated one way or the other.
Thanks!
Thanks!
Backup to FTP
Backup and Restore Utilities allow you and your customers to back up data on remote FTP server and restore backups stored there. Separate FTP backup repository allows you and your customers to efficiently manage your backup files.
#!/bin/bash
$ftp_site="ftp.example.com"
$ftp_user="me"
$ftp_pass="uwish"
$theday=`date +%a`
nice -19 /usr/local/psa/bin/pleskbackup -s 100M all /home/backup/plesk_backup-$theday
for i in `ls /home/backup`; do
(echo "open $ftp_site
user $ftp_user $ftp_pass
bin
put /home/backup/$i $i
bye"
) | ftp -n
rm /home/backup/$i
done
I would love to use rsync.
But what folders do I tell rsync to backup?
Does anyone have a list of what folders the pleskbackup command actually backs up so I could just mimick it in rsync?
How would I get databases and the plesk settings?
cd /
(echo "open $ftp_site
user $ftp_user $ftp_pass
cd Server
bin
put - email_files-$theday.tgz
bye"
nice tar -zcf - \
var/qmail/mailnames
) | ftp -n