set user as root

This commit is contained in:
Osman Faruk Bayram 2025-12-21 22:53:43 +03:00
parent 09f14ac11b
commit 7992910061

View file

@ -28,6 +28,7 @@ let
rsyncCommands = map (source: ''
echo "Backing up ${source} from ${backupCfg.remoteHost}..."
${pkgs.rsync}/bin/rsync -avz --delete \
--chown=root:root \
-e "${pkgs.openssh}/bin/ssh -o StrictHostKeyChecking=accept-new" \
${backupCfg.remoteUser}@${backupCfg.remoteHost}:${source}/ \
${backupCfg.localPath}/${builtins.baseNameOf source}/