spaceport/apiserver/delete_old_backups.sh

10 lines
257 B
Bash
Raw Normal View History

2020-02-19 23:58:02 +00:00
#!/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 {} \;