Rsync: Don't preserve group/owner

This commit is contained in:
Jeremy Gardais 2023-02-10 11:17:13 +01:00
parent 2da3ad9264
commit 9d88c482e6
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 3 additions and 1 deletions

View File

@ -189,7 +189,9 @@ main() { # {{{
### }}}
### Synchronize first directory to second {{{
#### OR exit with error code 12 if it fails
rsync -a -- "${first_bkp_dir}/" "${second_bkp_dir}/" \
#### rsync "-a" option might fail with some network share
#### So, remove --group and --owner options
rsync --recursive --links --perms --times -D -- "${first_bkp_dir}/" "${second_bkp_dir}/" \
|| exit 12
### }}}
fi