Skip to content

Commit

Permalink
add temp backup file
Browse files Browse the repository at this point in the history
  • Loading branch information
redxtech committed Mar 6, 2024
1 parent 7373127 commit 9827032
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions hosts/bastion/backup.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{ pkgs, ... }:

{
# Enable cron service
services.cron = let
backup-rsync = pkgs.writeShellApplication {
name = "backup-rsync";
runtimeInputs = with pkgs; [ rsync ];
text = ''
host="$(hostname)"
'';
};
in {
enable = true;
systemCronJobs = [ "*/5 * * * * root date >> /tmp/cron.log" ];
};
}
1 change: 1 addition & 0 deletions hosts/bastion/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
./hardware-configuration.nix
./filesystem.nix
./services.nix
# ./backup.nix

../common/global
../common/global/auto-upgrade.nix
Expand Down

0 comments on commit 9827032

Please sign in to comment.