#!/usr/bin/env nix-shell
#!nix-shell -i bash -p 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
