find files older than linux code example
Example 1: delete old files linux
find /opt/backup -type f -mtime +30 -exec rm -f {} \;
Example 2: bash get files older than
find your/folder -type f -mtime +13 -exec rm {} \;
find /opt/backup -type f -mtime +30 -exec rm -f {} \;
find your/folder -type f -mtime +13 -exec rm {} \;