Balack
asked on
How to find and move the files based on time stamp in Linux system?
This is SUSE Linux enterprise server 11.0. This is a folder, called WHETHER, used to collect latest info about the whether. Newer files would be updated anytime. To avoid the file and folder sizes outgrown, I'm thinking to move the files, that are more than 1 month old, to another backup folder - /backup/Whether. How should I do it to use a cron job?
find /WHETHER -mtime +90 -exec mv '{}' /backup/Whether \;
sorry this is probably better:
find /WHETHER -type f -mtime +90 -exec mv '{}' /backup/Whether \;
find /WHETHER -type f -mtime +90 -exec mv '{}' /backup/Whether \;
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Good