Backup: Difference between revisions
Jump to navigation
Jump to search
New page: go back to Main Page, Computational Resources, Information & Help '''Please, talk with your supervisor and Martín about performing buckups, ..''' ===How to make backup ... |
|
(No difference)
| |
Revision as of 11:10, 12 June 2009
go back to Main Page, Computational Resources, Information & Help
Please, talk with your supervisor and Martín about performing buckups, ..
How to make backup from a remote machine
Here a short outline on how to make automatic backup from a remote machine is given. Most of this can be found elsewhere on the Internet, but main ideas are given here for convenience.
- set up ssh to connect via public key authentication
- download and install keychain
- download and install rsync (if it's not already there)
- write a script like this:
#! /bin/bash source ~/.keychain/$HOSTNAME-sh rsync -avz --exclude-from=exclude-list $USER@kimik: /some/backup/folder
5. put the script in a cron job
Some comments
the exclude-list is a file that defines an exclusion pattern. For instance, if you do not want to backup core files and .chk files, you can define that pattern as this:
core* *.chk
If you for instance want to backup your files everyday at 6 am., you edit the crontab like this:
00 06 * * * absolute path of your script