duplicity: add utility to list backup files
This commit is contained in:
parent
9633c4f012
commit
439c7d9ef2
|
@ -20,6 +20,7 @@ resholve.mkDerivation {
|
||||||
inputs = with pkgs; [
|
inputs = with pkgs; [
|
||||||
coreutils
|
coreutils
|
||||||
curl
|
curl
|
||||||
|
duplicity
|
||||||
file
|
file
|
||||||
findutils
|
findutils
|
||||||
gnugrep
|
gnugrep
|
||||||
|
@ -39,6 +40,7 @@ resholve.mkDerivation {
|
||||||
which
|
which
|
||||||
];
|
];
|
||||||
keep = {
|
keep = {
|
||||||
|
"/run/secrets/duplicity_passphrase" = true;
|
||||||
# we write here: keep it
|
# we write here: keep it
|
||||||
"/tmp/rmlint.sh" = true;
|
"/tmp/rmlint.sh" = true;
|
||||||
# intentionally escapes (into user code)
|
# intentionally escapes (into user code)
|
||||||
|
@ -58,6 +60,7 @@ resholve.mkDerivation {
|
||||||
|
|
||||||
# list of programs which *can* or *cannot* exec their arguments
|
# list of programs which *can* or *cannot* exec their arguments
|
||||||
execer = with pkgs; [
|
execer = with pkgs; [
|
||||||
|
"cannot:${duplicity}/bin/duplicity"
|
||||||
"cannot:${gocryptfs}/bin/gocryptfs"
|
"cannot:${gocryptfs}/bin/gocryptfs"
|
||||||
"cannot:${ifuse}/bin/ifuse"
|
"cannot:${ifuse}/bin/ifuse"
|
||||||
"cannot:${oath-toolkit}/bin/oathtool"
|
"cannot:${oath-toolkit}/bin/oathtool"
|
||||||
|
|
10
pkgs/sane-scripts/src/sane-backup-ls
Executable file
10
pkgs/sane-scripts/src/sane-backup-ls
Executable 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
|
Loading…
Reference in New Issue
Block a user