Please create a cron job for the same and insert the following command.
find /data/backup/ -type f -ctime +90 -exec rm -f {} \; -print
find /data/backup/ -type d -ctime +90 -exec rm -rf {} \; -print
To check out the list of files
find /data/backup/ -ctime +90