From 9d88c482e6c8efc785e737460ab4ea4823120eb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Fri, 10 Feb 2023 11:17:13 +0100 Subject: [PATCH] Rsync: Don't preserve group/owner --- proxmox/backup.pve.content.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/proxmox/backup.pve.content.sh b/proxmox/backup.pve.content.sh index a6851c4..c3006e5 100755 --- a/proxmox/backup.pve.content.sh +++ b/proxmox/backup.pve.content.sh @@ -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