add missing file-snapshot

This commit is contained in:
Michael Jerger 2023-03-10 15:43:58 +01:00
parent 067444c7d6
commit d4c85a48f6

View file

@ -58,3 +58,12 @@ function restore-directory() {
fi fi
} }
function list-snapshot-files() {
if [ -z ${CERTIFICATE_FILE} ];
then
restic -r ${RESTIC_REPOSITORY}/${backup_file_path} snapshots
else
restic -r ${RESTIC_REPOSITORY}/${backup_file_path} snapshots --cacert ${CERTIFICATE_FILE}
fi
}