Backups

| categories: mac, linux | View Comments

Backuping should be - routine,automatic, and simple. I'm using the following:

1: rsync --force --ignore-errors --delete \
2:  --exclude /path/to/*excluded_files* \
3:  --backup-dir=`date +%Y-%m` -avb /home/yourname/ \
4:  /path/to/your/BCK/hd

Each month you get a new directory YYYYmm (year+month) on your backup hard drive, for files that have been changed/deleted during this month. You should probably delete it after a few months, but sometimes you will want to recover some data which was mistakenly deleted. Otherwise, all other files (which weren't deleted or modified) are just duplicated to the backup hd.

If you are using linux, you should probably put this script in your /etc/cron.daily/ directory. And give it the correct permissions.

Copyright (C) 2015 by Avi Gozolchiani. See the License for information about copying.

org-mode source

blog comments powered by Disqus