diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2017-12-17 01:16:36 +0100 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2017-12-17 01:16:36 +0100 |
| commit | fd586475a8fec79f2a2a1efee0162ab95f3792d0 (patch) | |
| tree | b103c01ffdf62014f9651aa1cb0ecf9dbb29e4aa | |
| parent | 56c0f428dbc7ffa19d176c6a5334e881fdbec040 (diff) | |
| download | nixos-fd586475a8fec79f2a2a1efee0162ab95f3792d0.tar nixos-fd586475a8fec79f2a2a1efee0162ab95f3792d0.tar.gz nixos-fd586475a8fec79f2a2a1efee0162ab95f3792d0.tar.bz2 nixos-fd586475a8fec79f2a2a1efee0162ab95f3792d0.tar.xz nixos-fd586475a8fec79f2a2a1efee0162ab95f3792d0.zip | |
…
| -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 | } |
