Skip to content

Instantly share code, notes, and snippets.

@mumrah
Last active December 28, 2015 06:19
Show Gist options
  • Save mumrah/7456466 to your computer and use it in GitHub Desktop.
Save mumrah/7456466 to your computer and use it in GitHub Desktop.
Personal backup strategy

Goals

Provide onsite and offsite archiving and disaster recovery.

Onsite file sync

Synchronize several laptops and phones using BTSync to a local backup server with large attached storage (a few TB at least). Do this continuously to provide a single local backup.

Onsite snapshot backups

Use rsync to create an incremental snapshot backup on the same machine, but different volume. This provides a Time Machine style point-in-time rollback. This sync should happen once per day (at least). A symlink to the latest snapshot will be maintained as well.

https://github.com/mumrah/rsync-time-backup as the rsync script

./rsync_tmbackup.sh /Users/mumrah/iPhone /tmp/staging excludes.txt

Offsite sync

Once per day/week/whatever, synchronize the "latest" pointer to S3

s3cmd -c s3.cfg sync latest s3://mumrah-backup

Restore from onsite backup

TODO

Restore from offsite backup

TODO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment