I am on an Ubuntu 16.04 LTS machine and in preparation for an upgrade to 18.04 LTS I want to move all
/home directories (in fact there is only
/home/juergen) to a separate, now free partition that I happen to have.
I found two good tutorials on how to do this correctly, namely
and (in German)
I understand them fully, but have a question about the optimal set of options to use for moving the home directory data.
The first source recommends
sudo rsync -aXS --exclude='/*/.gvfs' /home/. /media/home/.
the second one
rsync -avxH --progress /home/ /mnt/tmp
I understand that the
--exclude from the first source is reasonable and
--progress from the second one too and that they can be combined. But what about the other options?
S (preserving sparsity) seems to be useful as I generated artificially for some test purposes some very big 'files with holes' in my home-directory.
H (hard links) looks worthwhile too - or could it be a problem to preserve hard-links?
X seems also good: as I want to preserve everything and this promises to preserve 'extended attributes' (whatever this means). So should I simply combine them all?
But even then there might be some options lurking, that would be useful? I must admit I can not come to a clear conclusion with all these
rsync options (in my own backups I use
Many thanks in advance for your answers!