summaryrefslogtreecommitdiff
path: root/yams
diff options
context:
space:
mode:
Diffstat (limited to 'yams')
-rwxr-xr-xyams5
1 files changed, 5 insertions, 0 deletions
diff --git a/yams b/yams
index 94ae558..1f109f7 100755
--- a/yams
+++ b/yams
@@ -2,6 +2,7 @@
set -eu
dc="docker-compose -f <filename>"
+install_location="<install_location>"
option=${1:-"--help"}
@@ -50,3 +51,7 @@ if [ $option == "destroy" ]; then
echo "\$ yams start"
fi
fi
+
+if [ $option == "create-backup" ]; then
+ tar -czf "$install_location/backups/yams-backup-$(date '+\%Y-\%m-\%d-\%s').tar.gz" $install_location/config/*
+fi