add backup to gitea wrapper

This commit is contained in:
EV21 committed 2022-03-08 17:47:47 +01:00
1 parent 103882aedf
commit 26ecb6ce66
2 files changed
+11 -1

No files matched your search

+1 -1
View File
@@ -38,7 +38,7 @@ The following steps will be done automatically:
- check gpg signature - check gpg signature
- install `gitea` convenience wrapper script - install `gitea` convenience wrapper script
`gitea update`, `gitea log`, `gitea start | stop | restart | status` `gitea update`, `gitea log`, `gitea start | stop | restart | status`, `gitea backup`
- install `gitea-update` script - install `gitea-update` script
Connect via SSH to your Uberspace an then run: Connect via SSH to your Uberspace an then run:
+10
View File
@@ -74,6 +74,13 @@ case $FIRST_PARAMETER in
less ~/logs/supervisord.log less ~/logs/supervisord.log
exit $? exit $?
;; ;;
backup )
## this command creates a backup zip file with db, repos, config, log, data
## restoring the backup is more difficult
## read: https://docs.gitea.io/en-us/backup-and-restore/#restore-command-restore
$HOME/gitea/gitea dump --tempdir $HOME/tmp
exit $?
;;
esac esac
$HOME/gitea/gitea "$@" $HOME/gitea/gitea "$@"
@@ -122,6 +129,9 @@ NO_REPLY_ADDRESS = noreply.${USER}.uber.space
ENABLED = true ENABLED = true
MAILER_TYPE = sendmail MAILER_TYPE = sendmail
FROM = ${USER}@uber.space FROM = ${USER}@uber.space
[repository]
DEFAULT_BRANCH = main
end_of_content end_of_content
} }