parent
5227e82c15
commit
d18476da73
16 changed files with 1 additions and 1 deletions
13
packages/backup-websites.nix
Normal file
13
packages/backup-websites.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
pkgs.writeShellApplication {
|
||||
name = "backup-websites";
|
||||
|
||||
text = ''
|
||||
backup_path="''${HOME}/server-backup"
|
||||
|
||||
mkdir -p "''${backup_path}"
|
||||
|
||||
${lib.getExe pkgs.rsync} -avzP nixedo.local:/var/www/vhosts/ "''${backup_path}" --delete-after
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue