Last active
February 16, 2016 09:50
-
-
Save alexalouit/27dca9eb21dbd3f5318b to your computer and use it in GitHub Desktop.
Automatic purge of proxmox/vzdump that are aged 14 days over
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# cron ex: 15 5 * * * /usr/bin/nice -n 19 /usr/bin/ionice -c2 -n7 /root/scripts/vzdump-purge.sh >> /root/scripts/cron.log | |
path='' | |
# Search files more than 14 days and remove it | |
find $path -type f -ctime +14 -delete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment