I need to find a way to archive all files older than a given date but there are some conditions that are making it difficult for me to find the correct command:
Linux based system (RH5)
- there are multiple layers of directory depth I need to search
- each file should be tar'd in it's original location in the directory
- original file removed of course (this is a space issue)
- tar files should achieve max compression
- Cannot simply delete any files, records have to be maintained
Now personally I would prefer to pull all files from say July 2015 into a singe tar, max compress, and simply write a script that the web app can call to search the tar files and extract if needed.
---------- Post updated at 12:55 PM ---------- Previous update was at 11:53 AM ----------
I should have said I would prefer to do one big tar file but I'm being told I can't by management and customer.