I have to move my user home to another device, it occupies several gigabytes, I would like to avoid losing something, at the moment I think I will use rsync
rsync --progress -avh --remove-source-files $SRC/ $DST/, Is there anything better?
If you want to be on the really safe side (depending on your level of paranoia):
- Burn in the new device
- Perform surface test of new device
- Copy files to new device (i.e. not using the option
- Mount the new device in its intended place and make sure everything works correctly
- Only when everything works fine, discard the source files.
In case you would rather keep a backup of the source you could instead of using rsync for copying in point 3 create a tar archive of your home, extract that to the new device, and keep the archive when discarding the old device.