12 lines
290 B
Plaintext
Executable File
12 lines
290 B
Plaintext
Executable File
#!/usr/bin/env nix-shell
|
|
#!nix-shell -i bash -p duplicity
|
|
|
|
# N.B. must be run as root
|
|
|
|
set -ex
|
|
|
|
# source the URL; hack to satisfy resholve
|
|
external_cmd="source /run/secrets/duplicity_passphrase.env"
|
|
$external_cmd
|
|
duplicity list-current-files --archive-dir /var/lib/duplicity $DUPLICITY_URL
|