From 1fd5ec5697680e2ec6277431bd74cabf48dbc94f Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Tue, 9 May 2023 13:45:16 +0200 Subject: tmpfiles: Add merge support for copy files action If '+' is specified with 'C', let's merge the tree with any existing tree. --- man/tmpfiles.d.xml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'man') diff --git a/man/tmpfiles.d.xml b/man/tmpfiles.d.xml index 54f3c501cb..a105b8af39 100644 --- a/man/tmpfiles.d.xml +++ b/man/tmpfiles.d.xml @@ -58,6 +58,7 @@ c+ /dev/char-device-to-[re]create mode user group - major b /dev/block-device-to-create mode user group - major:minor b+ /dev/block-device-to-[re]create mode user group - major:minor C /target/to/create - - - cleanup-age /source/to/copy +C+ /target/to/create - - - cleanup-age /source/to/copy x /path-or-glob/to/ignore/recursively - - - cleanup-age - X /path-or-glob/to/ignore - - - cleanup-age - r /path-or-glob/to/remove - - - - - @@ -326,15 +327,14 @@ L /tmp/foobar - - - - /dev/null C - Recursively copy a file or directory, if the - destination files or directories do not exist yet or the - destination directory is empty. Note that this command will not - descend into subdirectories if the destination directory already - exists and is not empty. Instead, the entire copy operation is - skipped. If the argument is omitted, files from the source directory - /usr/share/factory/ with the same name - are copied. Does not follow symlinks. Contents of the directories - are subject to time-based cleanup if the age argument is specified. + C+ + Recursively copy a file or directory, if the destination files or directories do + not exist yet or the destination directory is empty. Note that this command will not descend into + subdirectories if the destination directory already exists and is not empty, unless the action is + suffixed with +. Instead, the entire copy operation is skipped. If the argument + is omitted, files from the source directory /usr/share/factory/ with the same + name are copied. Does not follow symlinks. Contents of the directories are subject to time-based + cleanup if the age argument is specified. -- cgit v1.2.1