From 21721815974868485d5b8be4616e809613a4c01b Mon Sep 17 00:00:00 2001 From: olli Date: Wed, 7 Dec 2022 09:35:17 +0100 Subject: [PATCH] nummeric-ids for ssh and root rsync --- gaboshlib/g_backup.bashfunc | 1 + 1 file changed, 1 insertion(+) diff --git a/gaboshlib/g_backup.bashfunc b/gaboshlib/g_backup.bashfunc index 87ea3bc..48b60c8 100644 --- a/gaboshlib/g_backup.bashfunc +++ b/gaboshlib/g_backup.bashfunc @@ -88,6 +88,7 @@ Nextcloud/ rsyncopts="-aXAh --timeout=180 --force --delete --ignore-missing-args --inplace --partial" [ -n "$BACKUPEXCLUDES" ] && rsyncopts="$rsyncopts --delete-excluded --exclude-from=$BACKUPEXCLUDES" [ -n "$BACKUPSRV" ] && rsyncopts="$rsyncopts -e 'ssh -p $BACKUPSRVPORT'" + [ "$BACKUPSRVUSER" == "root" ] && syncopts="$rsyncopts --numeric-ids" ORIGIFS="$IFS" IFS=':'