From ed44a428653fe8a94714880dc947baeeaacf49d0 Mon Sep 17 00:00:00 2001 From: Dunestorm Date: Sun, 4 Aug 2019 10:14:46 +0000 Subject: [PATCH] Added script to perform a full Gitea docker container backup --- GiteaFullBackup.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 GiteaFullBackup.sh diff --git a/GiteaFullBackup.sh b/GiteaFullBackup.sh new file mode 100644 index 0000000..3a0697e --- /dev/null +++ b/GiteaFullBackup.sh @@ -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 \ No newline at end of file