1
0
mirror of https://github.com/xzeldon/vwdump.git synced 2025-06-28 02:28:14 +03:00
vwdump/delete.sh
jmqm 11c8653d26
More echoes (#12)
- `echo` when a script _(`backup`, `delete`)_ is added to cron jobs.
2021-07-13 22:13:24 -05:00

11 lines
256 B
Bash

#!/bin/sh
# Go to the backups directory.
cd /backups
# Delete tar.xz archives older than x days.
find . -iname "*.tar.xz" -type f -mtime +$DELETE_AFTER -exec rm -f {} \;
# Echo that script ran.
echo "[INFO] Deleted files older than $DELETE_AFTER days."