]> git.ipfire.org Git - thirdparty/systemd.git/commit
docs: tweak rsync flags for moving existing home dir to systemd-homed
authorwouter bolsterlee <wouter@bolsterl.ee>
Wed, 1 Feb 2023 20:15:22 +0000 (21:15 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 1 Feb 2023 20:47:56 +0000 (20:47 +0000)
commit3d3e51eff246f54b039743de02f9600d4996cd7f
tree83174c63d5508383669ddcee59057d7ec5a603eb
parent7bfe0a48d9df6e9488aaec2eeb5bfec051681e40
docs: tweak rsync flags for moving existing home dir to systemd-homed

The documentation on moving an existing homedir into a systemd-homed managed
one suggests using rsync(1) with a bunch of flags to preserve as much metadata
as possible: permissions, xattrs, timestamps, etc. The previously suggested
flags were:

    rsync -aHAXv --remove-source-files …

… which does include mtimes, but not ctimes and atimes, because -a does not
include those:

    --archive, -a            archive mode is -rlptgoD (no -A,-X,-U,-N,-H)

This change adds the -N and -U flags to preserve even more file timestamps,
turning the command into:

    rsync -aHANUXv --remove-source-files …

The new flags are:

    --crtimes, -N            preserve create times (newness)
    --atimes, -U             preserve access (use) times
docs/CONVERTING_TO_HOMED.md