Update backup.sh
This commit is contained in:
parent
6fe4c5a2ed
commit
aec6d1b2f6
|
@ -114,9 +114,9 @@ if [[ $* == *--auto* ]]; then
|
||||||
|
|
||||||
rm -rf ${tmp_dir}
|
rm -rf ${tmp_dir}
|
||||||
|
|
||||||
find /rmmbackups/daily/ -maxdepth 1 -mtime +14 -type d -exec rm -rv {} \;
|
find /rmmbackups/daily/ -type f -mtime +14 -name '*.tar' -execdir rm -- '{}' \;
|
||||||
find /rmmbackups/weekly/ -maxdepth 1 -mtime +60 -type d -exec rm -rv {} \;
|
find /rmmbackups/weekly/ -type f -mtime +60 -name '*.tar' -execdir rm -- '{}' \;
|
||||||
find /rmmbackups/monthly/ -maxdepth 1 -mtime +380 -type d -exec rm -rv {} \;
|
find /rmmbackups/monthly/ -type f -mtime +380 -name '*.tar' -execdir rm -- '{}' \;
|
||||||
echo -ne "${GREEN}Backup Completed${NC}\n"
|
echo -ne "${GREEN}Backup Completed${NC}\n"
|
||||||
exit
|
exit
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue