mirror of
https://github.com/xzeldon/vwdump.git
synced 2025-06-28 02:28:14 +03:00
11 lines
256 B
Bash
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."
|