Linux: howto zip up files modified within the last month

For next time I need to do it, here’s how to zip up files modified within the last 30 days.

find foldernamehere/ -mtime -30 -exec zip zipfilenamehere.zip "{}" ;

change 30 to number of days required. creates a zip named zipfilenamehere.zip containing all files.

Leave a Reply

Your email address will not be published. Required fields are marked *