User:Jebba/Backups

jebba (Talk | contribs)
(new backups page)
Newer edit →

Revision as of 22:37, 28 December 2009

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/