Run restic prune before backup

This commit is contained in:
2022-08-30 22:36:26 -05:00
parent 0338a60747
commit cb5971876f
4 changed files with 31 additions and 6 deletions

View File

@ -33,7 +33,7 @@ main() {
gitea dump \
--config "$GITEA_CONFIG" \
--work-path "$GITEA_WORK_PATH" \
--custom-path "$GITEA_CUSTOM_PATH" > /dev/null
--custom-path "$GITEA_CUSTOM_PATH" >/dev/null 2>&1
printf "gitea dump complete\n"
popd > /dev/null || printf "could not chdir to %s\n" "$OLDPWD"
elif [ "$1" == "post" ]; then