From f474cae9b0a08be351e5b8a92d8bd87947fd16bc Mon Sep 17 00:00:00 2001 From: Madeline Holland Date: Fri, 31 Mar 2023 16:16:26 -0500 Subject: [PATCH] Fix backup if LFS is disabled to bypass upstream error - https://github.com/go-gitea/gitea/pull/23730 - Explicitly skips LFS data, if you're not TEN7 and use this, be careful! - Also skips Index from backup, since this doesn't take long to regenerate. --- tasks/backup.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tasks/backup.yml b/tasks/backup.yml index 0eb06b9..0468161 100644 --- a/tasks/backup.yml +++ b/tasks/backup.yml @@ -43,7 +43,10 @@ command: > gitea dump --type {{ _backup_file_suffix }} - --file /tmp/{{ _backup_file_prefix }} + --custom-path /tmp/ + --file {{ _backup_file_prefix }} + --skip-lfs-data + --skip-index - name: Generate the backup file name. set_fact: