Archive old files [cli, unix]

Command Line Magic (@climagic)
04/03/11 07:16
find . -maxdepth 1 -type f -mtime +60 -exec gzip -v9 {} \; # gzip files in the current directory that are more than 60 days old.
About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s