Added script to perform a full Gitea docker container backup
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user