spaceport/apiserver/scripts/delete_old_backups.sh

10 lines
257 B
Bash
Executable File

#!/bin/bash
# be safe
set -euf -o pipefail
# test these carefully
#find "${backup_folder}" -mindepth 1 -type d -print
#find "${backup_folder}" -mindepth 1 -type d -ctime +14 -print
#find "${backup_folder}" -mindepth 1 -type d -ctime +14 -exec rm -r {} \;