Added script to perform a full Gitea docker container backup

This commit is contained in:
2019-08-04 10:14:46 +00:00
parent e9399ff0f8
commit ed44a42865
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
# This script will perform a full backup of Gitea and name the
# backup file according to the current date and time.
# Modify the below values
CONF=/data/gitea/conf/app.ini
TMPDIR=/data/TMPDIR
BAKDIR=/data/backups
# ------------------------
DATESTAMP=$(date +"%Y-%m-%d_%H%M%S")
/app/gitea/gitea dump -c $CONF -t $TMPDIR -f $BAKDIR/$DATESTAMP.zip