From 07fdd04754a681c569c6c154a114ed540e963978 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Thu, 26 Mar 2020 04:07:37 -0600 Subject: [PATCH] perform list operations --- .vscode/numbered-bookmarks.json | 18 +++++++++++++++++- borghelper.sh | 9 +++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/.vscode/numbered-bookmarks.json b/.vscode/numbered-bookmarks.json index 4c08963..0d40fce 100644 --- a/.vscode/numbered-bookmarks.json +++ b/.vscode/numbered-bookmarks.json @@ -1,3 +1,19 @@ { - "bookmarks": [] + "bookmarks": [ + { + "fsPath": "$ROOTPATH$/borghelper.sh", + "bookmarks": [ + -1, + 222, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 61 + ] + } + ] } \ No newline at end of file diff --git a/borghelper.sh b/borghelper.sh index d00bd5c..8c170ad 100755 --- a/borghelper.sh +++ b/borghelper.sh @@ -220,6 +220,15 @@ fi export TMPDIR="${borgBaseDir}/tmp" +### execute borg operations + +# list operations +if [ "$operation" = 'listall' ]; then + borg list +elif [ "$operation" = 'viewarchive' ]; then + borg list ::"${archiveName}" +fi + ### exit gracefully cleanup