Aucun résumé des modifications |
|||
| Ligne 14 : | Ligne 14 : | ||
</syntaxhighlight><br> | </syntaxhighlight><br> | ||
== | == Utiliser des chemins relatifs == | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
tar -C /home/jlt/ -zcvf bin.tar.gz ./bin/* | tar -C /home/jlt/ -zcvf bin.tar.gz ./bin/* | ||
#filelist.txt est la liste des fichiers inclure cette liste
tar -zcvf archive.tar.gz -T filelist.txt
#exemple avec /usr/share à exclure
tar --exclude /usr/share/* -zcvf archive.tar.gz
tar -C /home/jlt/ -zcvf bin.tar.gz ./bin/*