On Thu, 12 Jan 2012 16:26:52 +0100, Frank Steinmetzger wrote: > > rsync -av --delete --delete-excluded \ > > --exclude=/dev/ \ > > --exclude=/proc/ \ > > --exclude=/sys/ \ > > --exclude=/tmp/ \ > > --exclude=/usr/portage/ \ > > --exclude=/var/portage/ \ > > --exclude=/var/run/ \ > > --exclude=/var/tmp/ \ > > / b...@backupserver.foo.bar:/mnt/backup/machine1/ > > rsync++ > > > I exclude the portage tree, no reason to bak it up. emerge --sync and > > you're done. > > You can squash dev, proc and sys all at once with the -x flag. > > > To restore I just boot into the rescue system of my server hoster and > > do a > > > > rsync -av --delete --delete-excluded \ > > b...@backupserver.foo.bar:/mnt/backup/machine1/ / > > I did the very same recently when reformatting my system partition for > a new FS. Beware though that after this command you still need to > create some device files in /dev for udev to work properly, because > they were excluded. I think it was null and console, but I'm not sure.
mount --bind / /mnt/root rsync -avx /mnt/root user@remote.server:/backup/ -- Neil Bothwick Fer sail cheep, Windows spel chekcer, wurks grate
signature.asc
Description: PGP signature