Re: Backup script not working properly

2004-10-14 Thread Fredrik Persson
Thanks, I changed to /bin/bash and now it's working fine. Fredrik -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/

Re: Backup script not working properly

2004-10-13 Thread Robin Bowes
Brian Dessent wrote: Fredrik Persson wrote: All works but for the last for-loop which is responsible for deleting old backups such that only NUMBKPS=4 of the last backups are stored. The problem is in 'if [ ${num} -le 0 ]' and 'else num=$((${num}-1))'. It seems like the num-variable can't be used

Re: Backup script not working properly

2004-10-13 Thread Brian Dessent
Fredrik Persson wrote: > All works but for the last for-loop which is responsible for deleting old > backups such that only NUMBKPS=4 of the last backups are stored. > > The problem is in 'if [ ${num} -le 0 ]' and 'else num=$((${num}-1))'. It seems > like the num-variable can't be used as an inte

Backup script not working properly

2004-10-13 Thread Fredrik Persson
I have used a very nice backup script i Linux which i now want to use in cygwin. -- #!/bin/sh # for FULL backups # this backs up the important stuffs listed in ${lists} to ${BKPDIR} # the lists *should* be in ${BKPDIR} and n