perform list operations

This commit is contained in:
Asif Bacchus 2020-03-26 04:07:37 -06:00
parent dc75c0afea
commit 07fdd04754
2 changed files with 26 additions and 1 deletions

View File

@ -1,3 +1,19 @@
{ {
"bookmarks": [] "bookmarks": [
{
"fsPath": "$ROOTPATH$/borghelper.sh",
"bookmarks": [
-1,
222,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
61
]
}
]
} }

View File

@ -220,6 +220,15 @@ fi
export TMPDIR="${borgBaseDir}/tmp" 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 ### exit gracefully
cleanup cleanup