From 370a033a62ffad9648cb902f09e96c527ab94f50 Mon Sep 17 00:00:00 2001 From: Bel LaPointe Date: Wed, 3 Jul 2019 14:27:45 -0600 Subject: [PATCH] save --- sync.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sync.sh b/sync.sh index dd4cbd2..fa3ab34 100644 --- a/sync.sh +++ b/sync.sh @@ -19,10 +19,11 @@ function main() { local action="$1" shift case "$action" in - clean ) clean_remote --prune "$@" ;; - backup ) backup "$@" ;; - restore ) restore "$@" ;; - * ) RESTIC "$action" "$@" ;; + clean ) clean_remote --prune "$@" ;; + backup ) backup "$@" ;; + restore ) restore "$@" ;; + forget ) fatal "Refusing custom forget" ;; + * ) RESTIC "$action" "$@" ;; esac }