add aicloud backup schedule
This commit is contained in:
parent
980e8592c3
commit
6dc6590f73
1 changed files with 12 additions and 0 deletions
|
|
@ -5,6 +5,7 @@
|
|||
../home-default.nix
|
||||
../../../modules/syncthing.nix
|
||||
../../../modules/media/tool.nix
|
||||
../../../modules/schedule.nix
|
||||
];
|
||||
|
||||
syncthing-custom.folders = {
|
||||
|
|
@ -13,5 +14,16 @@
|
|||
Media.maxAgeDays = 7;
|
||||
Archive.maxAgeDays = 30;
|
||||
};
|
||||
|
||||
services.scheduled-commands.aicloud-backup = {
|
||||
enable = true;
|
||||
description = "Backup outputs files on aicloud";
|
||||
interval = "*-*-* *:10:00";
|
||||
commands = [
|
||||
"rsync -avhP aicloud.lan:~/xrd-cond-glass-gen/{outputs,checkpoints,stdout} ~/run/xrd-cond-glass-gen"
|
||||
"rsync -avhP aicloud.lan:~/charge-bal/{outputs,checkpoints,stdout} ~/run/charge-bal"
|
||||
"rsync -avhP aicloud.lan:~/sr-gen-traj/{outputs,checkpoints,stdout} ~/run/sr-gen-traj"
|
||||
];
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue