[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: users backup (will change the root hard disk)



On Mon, 23 Mar 2009, Paul E Condon wrote:


Create a top level target directory on the USB
#> mkdir /media/USB/target

Do something like
#> rsync -a /home/ /media/USB/target

Notice that 'home' has slashes both left and right. This is important
to rsync.

Follow with rsync of other directories in /. E.g. /etc, /boot, /root,
etc.

Do NOT do #> rsync -a /media/ /media/USB/target ;-(

Too much work. Use:

rsync -vaHz --exclude '/proc' --exclude '/sys'
--exclude '/media' /  /media/USB/target


--
Bob Holtzman
The age of consent should be raised to 22 and made mandatory


Reply to: