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 {} \;
Related Posts
- CHMOD Recursive Command On Specific File Extension
- Unix Find File With Modified Time
- Backup Script For Linux-Apache-PHP-MySQL
- Unix Find And Grep Command
- Unix TAR Archive Command
PreviousNext» Security Scan For Exploitable Programs And Backdoors
Leave a Comment



