Skip to content

Commit

Permalink
x1: configure automatic backups with BorgBackup
Browse files Browse the repository at this point in the history
  • Loading branch information
wagdav committed Oct 27, 2024
1 parent 8d990e3 commit d0ff380
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions x1.nix
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,35 @@
# should.
system.stateVersion = "24.05"; # Did you read the comment?

# Backup
services.borgbackup.jobs.home = {
paths = "/home";
patterns = [
"+ /home/*/documents"
"+ /home/*/projects"
"+ /home/*/.password-store"
"+ /home/*/.ssh/id_*"
"+ /home/*/.gnupg/**"
"- **/*.o"
"- **/.pyc"
"- **/.swp"
"- **"
];
repo = "/mnt/nas/backup/borg/x1";
encryption.mode = "none";
doInit = false;
user = "dwagner";
startAt = "daily";
persistentTimer = true;
prune.keep = {
within = "1d";
daily = 7;
weekly = 4;
monthly = 12;
yearly = 10;
};
};

disko.devices = {
disk = {
system = {
Expand Down

0 comments on commit d0ff380

Please sign in to comment.