diff options
author | wouter bolsterlee <wouter@bolsterl.ee> | 2023-02-01 21:15:22 +0100 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2023-02-01 21:47:56 +0100 |
commit | 3d3e51eff246f54b039743de02f9600d4996cd7f (patch) | |
tree | 83174c63d5508383669ddcee59057d7ec5a603eb /docs/CONVERTING_TO_HOMED.md | |
parent | tpm2: rename tpm2 alg id<->string functions (diff) | |
download | systemd-3d3e51eff246f54b039743de02f9600d4996cd7f.tar.xz systemd-3d3e51eff246f54b039743de02f9600d4996cd7f.zip |
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
Diffstat (limited to '')
-rw-r--r-- | docs/CONVERTING_TO_HOMED.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/CONVERTING_TO_HOMED.md b/docs/CONVERTING_TO_HOMED.md index 80482a20e5..06fc66f195 100644 --- a/docs/CONVERTING_TO_HOMED.md +++ b/docs/CONVERTING_TO_HOMED.md @@ -114,7 +114,7 @@ Here's the step-by-step guide: home directory temporarily and copy the data in. ``` - homectl with foobar -- rsync -aHAXv --remove-source-files /home/foobar.saved/ . + homectl with foobar -- rsync -aHANUXv --remove-source-files /home/foobar.saved/ . ``` This mounts the home directory of the user, and then runs the specified |