add pre post backup scripts

This commit is contained in:
Boris Shestov
2023-11-29 15:00:34 +03:00
parent 15b5550a9b
commit c7a4d7a075
2 changed files with 36 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
#!/bin/bash
HOST_GITEA_BACKUP_DIR="/backup/gitea"
HOST_CONFIG_BACKUP_DIR="/backup/system_dirs"
rm -rf ${HOST_GITEA_BACKUP_DIR}/*
rm -rf ${HOST_CONFIG_BACKUP_DIR}/*
# notification