7 lines
218 B
Bash
7 lines
218 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
# Set the path to the folder
|
||
|
backup_path="/var/www/webroot/mightybox-search-replace-db/db-backup"
|
||
|
|
||
|
# Locate backup files older than 7 days and delete them
|
||
|
find $backup_path -type f -mtime +7 -exec rm {} \;
|