aquaballoon

rsync

Sep 19th, 2011
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.49 KB | None | 0 0
  1. A. Login w/o password in SSH
  2.  
  3. #Generating RSA Keys (Source Host)
  4. ssh-keygen -t rsa
  5.  
  6. #Transfer Client Key to Host (Destination Host: Backup server)
  7. ssh-copy-id <username>@<host>
  8.  
  9. B. Backups with rsync
  10.  
  11. rsync -avr --delete --exclude="temp" /etc/network/ admin@xxx.xxx.xxx.xxx:/home/hureeadmin/fwserver
  12.  
  13.  
  14. C. Automatic Backups (Cron)
  15.  
  16. nano /sh/rsync.sh
  17.  
  18. #! /bin/bash
  19.  
  20. rsync -av /etc/ admin@xxx.xxx.xxx.xxx:/home/admin/backup_fwserver
  21.  
  22.  
  23. crontab -e
  24.  
  25. 0 2 * * 0 sh /sh/sysbackup.sh
Advertisement
Add Comment
Please, Sign In to add comment