|
Search:
Advanced search
|
Browse by category:
|
Glossary |
TAR tutorial: backup and tar specific files only - recursively |
||||
Use the following command
tar -cvf /backup/location/yourfile.tar -C . --recursive `find \( -name "*.htm" -o -name "*.php" -o -name "*.html" -o -name "*.php3" \)` in the above command: " \(" the beginning of a complex logical expression "\)" the end of the expression "-o" means that it's a complex logic - there's more than one -name in the linux find function. This useful to backup only specific files on your machine. |
||||
Powered by
KnowledgebasePublisher (Knowledgebase software)

