aquaballoon

rsync (system backup) - sysbackup.sh

Jul 8th, 2013
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.39 KB | None | 0 0
  1. http://www.yolinux.com/TUTORIALS/Rsync.html
  2. // Backup /etc to /home/hureeadmin/backup at 124.158.108.139
  3.  
  4. #! /bin/bash
  5. rsync -avr --delete /etc/ root@124.158.108.139:/home/hureeadmin/backup
  6. rsync -avr --delete --exclude=".*" /home/web/ root@124.158.108.139:/home/hureeadmin/backup
  7. rsync -avr --delete /etc/ /home/hureeadmin/backup
  8.  
  9. // crontab -e -> 0  2  *   *   0     sh /sh/sysbackup.sh
Advertisement
Add Comment
Please, Sign In to add comment