From 08eb65a342be55c589a7fc113199b0947febfd19 Mon Sep 17 00:00:00 2001 From: Andy Bunce Date: Wed, 23 Mar 2022 20:46:54 +0000 Subject: [PATCH] [mod] restore --- gitea/README.md | 12 +++++++++--- gitea/restore_gitea_data.sh | 7 ++++--- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/gitea/README.md b/gitea/README.md index a36c52c..fde8341 100644 --- a/gitea/README.md +++ b/gitea/README.md @@ -4,6 +4,12 @@ from https://gist.github.com/sinbad/4bb771b916fa8facaf340af3fc49ee43 -### backup_gitea.sh -writes to `/mnt/drive/backups/gitea/` -### restore +### Backup + +`backup_gitea.sh` writes to `/mnt/drive/backups/gitea/` + +### Restore +```bash +#restore_gitea_data.sh [--dry-run] + ./restore_gitea_data.sh /srv/dev-disk-by-uuid-45e2e732-9e00-4a82-a7cc-9c743e033671/datastore/gitea data + ``` \ No newline at end of file diff --git a/gitea/restore_gitea_data.sh b/gitea/restore_gitea_data.sh index 0c86f26..0b25083 100644 --- a/gitea/restore_gitea_data.sh +++ b/gitea/restore_gitea_data.sh @@ -31,11 +31,12 @@ if [[ "$1" == "--help" ]]; then fi DRYRUN=0 -SOURCE="gitea" -DATADIR="data" +#SOURCE="gitea" +# /srv/dev-disk-by-uuid-45e2e732-9e00-4a82-a7cc-9c743e033671/datastore/gitea +#DATADIR="data" SQLDEST="" USER_UID=1000 -GROUP_GID=1000 +GROUP_GID=100 while (( "$#" )); do if [[ "$1" == "--dry-run" ]]; then