mount a stick or external hard-disk at /media/backup,
make sure its big enough. ( `df -ahl` )
Code:
rsync -auv \
--exclude="/home/*" \
--exclude="/proc/*" \
--exclude="/lost+found/*" \
--exclude="/dev/*" \
--exclude="/mnt/*" \
--exclude="/media/*" \
--exclude="/sys/*" \
--exclude="/tmp/*" \
/ /media/backup
That should be it.
You can use the -n switch for a dry run.
Code:
rsync -auv -n
...
...
/ /media/backup > dry.txt.
Look at dry.txt, if all is well. If yes go for the real run.
(double check if you really got your backup-device mounted).
Keep this file in mind in case you run into trouble:
/etc/udev/rules.d/70-persistent-net.rules
(if no net: either remove it and reboot or edit it manually).
There might be better ways. That's what i do, and it works.