Skip to content

Commit

Permalink
remove deskapp backup over cifs
Browse files Browse the repository at this point in the history
  • Loading branch information
appaquet committed Oct 21, 2024
1 parent 771248b commit fb08248
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nixos/deskapp/vms-backup.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
let
vmsDir = "/mnt/secondary/vms";

sshCmd = "${pkgs.openssh}/bin/ssh";
nasHost = "192.168.0.20";
sshCmd = "${pkgs.openssh}/bin/ssh -i /home/appaquet/.ssh/id_ed25519";
nasHost = "appaquet@192.168.0.20";
nasDest = "/volume1/backup_deskapp_vms/";
backupScript = pkgs.writeShellScriptBin "backup-vms" ''
set -xe
Expand Down Expand Up @@ -34,7 +34,7 @@ let
chmod -R u+wr,g+wr,a+r .
# Backup
${pkgs.rsync}/bin/rsync -av --progress --delete --whole-file -e ${sshCmd} --sparse . ${nasHost}:${nasDest}
${pkgs.rsync}/bin/rsync -av --progress --delete --whole-file -e "${sshCmd}" --sparse . ${nasHost}:${nasDest}
'';
in

Expand Down

0 comments on commit fb08248

Please sign in to comment.