set user as root
This commit is contained in:
parent
09f14ac11b
commit
7992910061
1 changed files with 1 additions and 0 deletions
|
|
@ -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}/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue