Current time: 12-23-2024, 01:26 PM Hello There, Guest! (LoginRegister)


Post Reply 
[HowTo] Rsync backup&restore + remote backup
Author Message
Alex Joe Offline
Junior Member
*

Posts: 72
Joined: Oct 2007
Reputation: 0
Post: #31
RE: [HowTo] Rsync backup&restore + remote backup
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.
05-11-2012 11:32 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 3 Guest(s)