Hello,
I'm running under Centos Linux.
I have this folder /test/production. In this folder new folders are created when my application is running. The newly created folders contain a number of files.
/test/production/new_folder1/file1
/test/production/new_folder1/file2

/test/production/new_folder2/file3
/test/production/new_folder2/file4

I would like to compress the files in the folders (folder1, folder2) that are older x days.

In fact, the aim is to delete the newly created folders after a number of days.
Could you please also tell me how to delete those folders containing the compressed files that are older than y days?

Could you please help me?

Thank you very much for any suggestions.
Alice

Posted 5 years ago
Top