finding files and using tar for backup.

The most common solution is to use find with xargs to backup Something like this: find /var/www/html/ -type f -name my*.csv -print0 | xargs -0 tar cfvzP /backupdir/backupfile The more files you have, especially over 1000 – this will produce weird results.  Number of files in the archive doesn’t match the output of the find xargs will split the input […]