use rsync to backup files
This commit is contained in:
parent
dd888c98a0
commit
5a75588042
2 changed files with 16 additions and 38 deletions
|
|
@ -16,6 +16,17 @@
|
|||
"rsync -avP aicloud:~/ /mnt/storage/Backup/aicloud/ --exclude='/.*'"
|
||||
];
|
||||
};
|
||||
|
||||
services.scheduled-commands.backup-to-thinkpad = {
|
||||
enable = true;
|
||||
description = "Backup files to thinkpad";
|
||||
interval = "*-*-* 00:00:00";
|
||||
commands = [
|
||||
"rsync-backup /mnt/storage/appbulk/immich/library/admin thinkpad:~/Backup/photos/immich-library"
|
||||
"rsync-backup /mnt/storage/Media/DCIM thinkpad:~/Backup/photos/DCIM"
|
||||
"rsync-backup /mnt/storage/Media/nsfw thinkpad:~/Backup/nsfw"
|
||||
];
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue