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