jeudi 26 mars 2015

tar not use files and delete it


I have folder with subfolders and sessions logs. I need some commands or script to tar this folder without usage files and then delete it. I have this construction, but I'm not sure if this leave files with handling.



tar -zcvf /srv/log/prod/dms/espis/documentum/log/00029392-$(date +%F).tar /srv/log/prod/dms/espis/documentum/log/0002939
cd /srv/log/pred/klid/espis/documentum/log/00029396
rm -R *


Any ideas?


Thanks Michell



Aucun commentaire:

Enregistrer un commentaire