I want to backup my server, but not bother with images /videos etc.
how can i tar.gz all those types of files i want (basically text files)?
|
|
|
You can use the find command to create an input list for most versions of tar. Depending on the flavor of Unix are you using the command syntax may differ. For example on IBM AIX it would be something like this:
If you have the fancy GNU(/Linux) utils you can do:
|
|||
|
|
|
Use the That would be a 'negative enumeration'. For a 'positive enumeration' you can do this:
|
||||
|
|
|
If you use First, you need to enable fancy file globbing. In Bash, this can be done like this:
In Zsh, the corresponding command is:
The rest is a piece of cake:
The |
|||
|
|