copying a home directory onto a removable drive and back

Tim Henderson bizdev at pwnspeak.com
Wed Jul 28 17:31:43 UTC 2010


> $ rsync -av --delete /home/username /media/usb

You can use the -H flag to preserve hard links:

rsync -avH --delete /home/username /media/usb/

Please note the lack of '/' after the username.  It is somewhat important.

Tim H.




More information about the ubuntu-users mailing list