Help running a script in linux
Posted on 2006-11-17
I have a red hat 8 server and I have this script in a file named backup.sh
zip -ur9 /home/backup/ArchiverosTIN.zip -t $(date +%m01%Y) /home/Archiveros/ -x@/home/backup/excluir.txt
zip -r9 /home/backup/ProscaiTIN_$(date +%d%m%Y_%H-%M).zip /home/Archiveros/Archivos/PROSCAI/
when I run the command "sh backup.sh" everything is fine, and the backup is done and I get 2 zip files
I added a line to the crontab file to run this script automatically every day at midnight, and the backup starts as spected, but It never finish, I only get one incomplete zip file (it is incomplete 'cos it has a random name , no extension, and its about 30 MB when it should be about 200)
does some one know why?