diff options
author | Jesse Luehrs <doy@tozt.net> | 2024-01-13 16:27:12 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2024-01-13 16:27:12 -0500 |
commit | 91a084c4411ffe053a032c68796dc60394f710b7 (patch) | |
tree | c4a2e82a31869481244506293f22efb9edfd55da | |
parent | 4d8ae043cd7c33a8586872cb9196dc3b7db15ae8 (diff) | |
download | puppet-tozt-91a084c4411ffe053a032c68796dc60394f710b7.tar.gz puppet-tozt-91a084c4411ffe053a032c68796dc60394f710b7.zip |
only get info on the latest archive
it seems borgmatic started fetching info about all archives, which
takes too long (we only care that the repository is initialized)
-rw-r--r-- | modules/borgmatic/manifests/init.pp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/borgmatic/manifests/init.pp b/modules/borgmatic/manifests/init.pp index 1af3083..fe1e4fd 100644 --- a/modules/borgmatic/manifests/init.pp +++ b/modules/borgmatic/manifests/init.pp @@ -24,7 +24,7 @@ class borgmatic($host = 'partofme.algo', $extra_paths = []) { environment => [ "BORG_PASSPHRASE=${borgmatic_passphrase}", ], - unless => '/usr/bin/borgmatic info > /dev/null', + unless => '/usr/bin/borgmatic info --archive latest > /dev/null', require => [ Package['borgmatic'], File['/etc/borgmatic/config.yaml'], |