use rsync to backup files

This commit is contained in:
Yan Lin 2025-12-05 23:07:12 +01:00
parent dd888c98a0
commit 5a75588042
2 changed files with 16 additions and 38 deletions

View file

@ -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; [
];