ispCP - Board - Support
[HowTo] Rsync backup&restore + remote backup - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Contributions Area (/forum-40.html)
+--- Forum: Howtos (/forum-41.html)
+--- Thread: [HowTo] Rsync backup&restore + remote backup (/thread-5156.html)

Pages: 1 2 3 4


RE: [HowTo] Rsync backup&restore + remote backup - Alex Joe - 05-11-2012 11:32 PM

On Debian Sqeeze Remote backup script finish error "Bad substitution:..."
On solved this problem I change this script:
Quote:Create backup.sh file on your ispCP server:
Code:
#!/bin/sh
for i in /var/www/virtual/*;
do
    domain=$(basename $i);
    rsync -v --delete --delete-excluded --timeout=999 -az -e 'ssh -c blowfish -i /root/.ssh/backup -ax -o ClearAllForwardings=yes' /var/www/virtual/$domain/backups server.tld:/backup_dir/$domain/
done

Don't forget to replace the "server.tld:/backup_dir" to your backup server.