User:Jebba/Backups

From Maemo Wiki
Revision as of 22:37, 28 December 2009 by imported>jebba (new backups page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Backups

Thankfully, pre-bricking, I had made a backup. There are a billion different ways to do this, but one quick way is good old rsync. This script backs up everything except the --excluded directories which are either things I don't want to back up (cities) or things you can't/shouldn't back up (/proc).

#!/bin/sh

rsync \
       -avv -ult --progress --stats \
       --rsh=ssh \
       --exclude /home/user/MyDocs/cities \
       --exclude /home/user/MyDocs/.sounds \
       --exclude /proc \
       --exclude /dev \
       --exclude /sys \
       --exclude /syspart \
       root@burger:/ \
       /home/jebba/BACKUPS/burger/