Browse Source

hacky minecraft backups for crimespoon

main
Leonora Tindall 2 years ago
parent
commit
b6403c479e
Signed by: nora GPG Key ID: 7A8B52EC67E09AAF
  1. 15
      hosts/crimespoon/configuration.nix

15
hosts/crimespoon/configuration.nix

@ -50,6 +50,21 @@
fsType = "nfs";
};
# Enable backups to Moria via rsync
systemd.services.rsync_backup = {
serviceConfig.Type = "oneshot";
path = with pkgs; [ rsync ];
script = ''
rsync -a --delete /var/games/minecraft/ moria.local::CRIMESPOON/minecraft/
'';
};
systemd.timers.rsync_backup = {
wantedBy = [ "timers.target" ];
partOf = [ "rsync_backup.service" ];
timerConfig.OnCalendar="*-*-* 2:00:00";
};
services.openssh.enable = true;
system.stateVersion = "21.11"; # Did you read the comment?
}

Loading…
Cancel
Save