Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- A. Login w/o password in SSH
- #Generating RSA Keys (Source Host)
- ssh-keygen -t rsa
- #Transfer Client Key to Host (Destination Host: Backup server)
- ssh-copy-id <username>@<host>
- B. Backups with rsync
- rsync -avr --delete --exclude="temp" /etc/network/ admin@xxx.xxx.xxx.xxx:/home/hureeadmin/fwserver
- C. Automatic Backups (Cron)
- nano /sh/rsync.sh
- #! /bin/bash
- rsync -av /etc/ admin@xxx.xxx.xxx.xxx:/home/admin/backup_fwserver
- crontab -e
- 0 2 * * 0 sh /sh/sysbackup.sh
Advertisement
Add Comment
Please, Sign In to add comment