duplicity: add utility to list backup files

This commit is contained in:
colin 2022-11-21 11:31:51 +00:00
parent 9633c4f012
commit 439c7d9ef2
2 changed files with 13 additions and 0 deletions

View File

@ -20,6 +20,7 @@ resholve.mkDerivation {
inputs = with pkgs; [
coreutils
curl
duplicity
file
findutils
gnugrep
@ -39,6 +40,7 @@ resholve.mkDerivation {
which
];
keep = {
"/run/secrets/duplicity_passphrase" = true;
# we write here: keep it
"/tmp/rmlint.sh" = true;
# intentionally escapes (into user code)
@ -58,6 +60,7 @@ resholve.mkDerivation {
# list of programs which *can* or *cannot* exec their arguments
execer = with pkgs; [
"cannot:${duplicity}/bin/duplicity"
"cannot:${gocryptfs}/bin/gocryptfs"
"cannot:${ifuse}/bin/ifuse"
"cannot:${oath-toolkit}/bin/oathtool"

View File

@ -0,0 +1,10 @@
#!/usr/bin/env bash
# N.B. must be run as root
set -ex
# source the URL; hack to satisfy resholve
external_cmd="source /run/secrets/duplicity_passphrase"
$external_cmd
duplicity list-current-files --archive-dir /var/lib/duplicity $DUPLICITY_URL