[DO-1037] add backup scripts (!6)

Reviewed-on: https://git.avroid.tech/DevOps/avroid_scripts/pulls/6
This commit is contained in:
Rustam Tagaev
2024-10-01 13:11:06 +03:00
parent 5195ba29bd
commit 4e8e15be16
3 changed files with 96 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
#!/bin/bash
DIRBACKUP="/data/backups"
if [ -d "${DIRBACKUP}" ]; then
rm -rf "${DIRBACKUP:?}/"*
fi