From 91a084c4411ffe053a032c68796dc60394f710b7 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 13 Jan 2024 16:27:12 -0500 Subject: 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) --- modules/borgmatic/manifests/init.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') 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'], -- cgit v1.2.3-54-g00ecf