diff options
| -rw-r--r-- | hel.nix | 7 |
1 files changed, 4 insertions, 3 deletions
| @@ -528,12 +528,9 @@ | |||
| 528 | path = with pkgs; [borgbackup]; | 528 | path = with pkgs; [borgbackup]; |
| 529 | 529 | ||
| 530 | script = '' | 530 | script = '' |
| 531 | pwd | ||
| 532 | |||
| 533 | borg create \ | 531 | borg create \ |
| 534 | --stats \ | 532 | --stats \ |
| 535 | --list \ | 533 | --list \ |
| 536 | --filter 'AME' \ | ||
| 537 | --exclude-caches \ | 534 | --exclude-caches \ |
| 538 | --keep-exclude-tags \ | 535 | --keep-exclude-tags \ |
| 539 | --patterns-from .backup \ | 536 | --patterns-from .backup \ |
| @@ -547,6 +544,10 @@ | |||
| 547 | serviceConfig = { | 544 | serviceConfig = { |
| 548 | Type = "oneshot"; | 545 | Type = "oneshot"; |
| 549 | WorkingDirectory = "/mnt/snapshot-%i"; | 546 | WorkingDirectory = "/mnt/snapshot-%i"; |
| 547 | Nice = 15; | ||
| 548 | IOSchedulingClass = 2; | ||
| 549 | IOSchedulingPriority = 7; | ||
| 550 | SuccessExitStatus = [1 2]; | ||
| 550 | }; | 551 | }; |
| 551 | }; | 552 | }; |
| 552 | } | 553 | } |
