[fix] exec

This commit is contained in:
Andy Bunce 2025-05-06 16:01:30 +01:00
parent 978d491df1
commit 49adc8630e
4 changed files with 6 additions and 6 deletions

4
forgejo/backup.sh Normal file → Executable file
View file

@ -1,9 +1,9 @@
#!/bin/bash #!/bin/bash
# backup gitea # backup gitea
echo "stopping" echo "stopping"
docker-compose stop docker-compose stop
echo "stopping" echo "stopping"
. backup_gitea.sh ./backup_gitea.sh
echo "restart" echo "restart"
docker-compose up -d docker-compose up -d

2
forgejo/backup_gitea.sh Normal file → Executable file
View file

@ -2,7 +2,7 @@
# `gitea dump` doesn't currently back up LFS data as well, only git repos # `gitea dump` doesn't currently back up LFS data as well, only git repos
# It primarily backs up the SQL DB, and also the config / logs # It primarily backs up the SQL DB, and also the config / logs
# We'll backup like this: # We'll backup like this:
# * "gitea dump" to backup the DB and config etc # * "gitea dump" to backup the DB and config etc
# * tar / bzip all the repos since they will be skipped # * tar / bzip all the repos since they will be skipped
# * Not rotated because git data is immutable (normally) so has all data # * Not rotated because git data is immutable (normally) so has all data

2
forgejo/restore_gitea_container.sh Normal file → Executable file
View file

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/bash
usage () { usage () {
echo "Re-create a Gitea Docker container from a backup" echo "Re-create a Gitea Docker container from a backup"

4
forgejo/restore_gitea_data.sh Normal file → Executable file
View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
# See backup_gitea.sh # See backup_gitea.sh
# Source to restore should include: # Source to restore should include:
# - gitea_backup.zip # - gitea_backup.zip
# - gitrepos_backup.tar.bz2 # - gitrepos_backup.tar.bz2