[Bash] Script d’archivage de répertoire

for i in $(ls -d */);
do
DATE=`date +"%y%m%d_%H%M"`
tar cvfz ${i%%/}_$DATE.tar.gz   ${i%%/};
done

Comments are closed, but trackbacks and pingbacks are open.