mirror of
https://github.com/EV21/uberspace-helper.git
synced 2026-10-08 04:43:18 +02:00
add backup to gitea wrapper
This commit is contained in:
2 files changed
+11
-1
No files matched your search
@@ -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:
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user