Helllo,
I have a command in crontab which moves the files older than 45 days to the archive location.
what i need to do is to first tar and zip the files older than 45 days and move to the archive location. how below command will change as per my requirement.
Code:
find /ABC -mtime +45 -exec mv {} /XYZ \;