Unix Backup Specific File Extension
Ever wonder sometimes you need to backup specific file in UNIX directory, the command below will help to achieve your requirement. The example below is to backup file with .sh extension in current directory and compress it to a backup named backup.tar
Backup Unix Files Extension
find . -name "*.sh" -exec tar -cvf ./backup.tar {} \;
Leave a Comment


Recent Comments