#!/bin/bash
Dir="/backup/backup/"
days="30"
find $Dir -type f -mtime +$days -exec rm {} \;
modify days value according to requirement. How old files you want to delete.
Dir="/backup/backup/"
days="30"
find $Dir -type f -mtime +$days -exec rm {} \;
modify days value according to requirement. How old files you want to delete.