Compressing all files that meet the specified criteria

You can find all files that meet the specified criteria and pipe the results to the vxcompress command to compress all of those files. The following example compresses all files in /mnt that have not been modified for more than 30 days:

$ find /mnt -mtime +30 | xargs /opt/VRTS/bin/vxcompress