I’d rather not do this in PHP so I’m hoping a someone decent at shell scripting can help.
I need a script that runs through directory recursively and finds all files with last modified date is greater than some date. Then, it will tar and zip the file(s) keeping the path information.
as simple as:
where
find . -mtime -1will select all the files in (recursively) current directory modified day before. you can use fractions, for example: