Outils d'utilisateurs

Outils du Site


lien:bash:perso:archive

retour

Archive

#!/bin/bash 
# archive pour créer une archive d'un répertoire 
if [ -d "$1" ]  
then  
    tar cvzf ${1%/}.tgz $1 
fi 
# pour voir le contenu d'un tgz : tar -tf nom.tgz 
exit 0 
lien/bash/perso/archive.txt · Dernière modification: 2009/05/23 13:19 par per