#!/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/tmp BAKDIR=/data/backups # ------------------------ DATESTAMP=$(date +"%Y-%m-%d_%H%M%S") /app/gitea/gitea dump -c $CONF -t $TMPDIR -f $BAKDIR/$DATESTAMP.zip