Re: Existance of /var/backups for periodic/daily

1999-08-26 Thread Stephen J. Roznowski
On 16 Aug, Rodney W. Grimes wrote: >> The 200-220 periodic files under daily expect that the directory >> /var/backups exist when they run to back up various files. If you >> delete this directory, the "cp" commands will error. >> >> There seems to be two ways to fix the files. >> >> 1. Add

Re: Existance of /var/backups for periodic/daily

1999-08-16 Thread Rodney W. Grimes
> The 200-220 periodic files under daily expect that the directory > /var/backups exist when they run to back up various files. If you > delete this directory, the "cp" commands will error. > > There seems to be two ways to fix the files. > > 1. Add a "if [ ! -d $bak ] ; then exit fi" to t

Re: Existance of /var/backups for periodic/daily

1999-08-16 Thread David O'Brien
> 1. Add a "if [ ! -d $bak ] ; then exit fi" to the top > of the files, or > 2. Add a "mkdir -p $bak" to the top. > > Do others consider this an error, and if so which is the preferred fix? Both. (2) followed by (1), possible logging a warning. -- -- David([EMAIL PROT

Existance of /var/backups for periodic/daily

1999-08-16 Thread Stephen J. Roznowski
The 200-220 periodic files under daily expect that the directory /var/backups exist when they run to back up various files. If you delete this directory, the "cp" commands will error. There seems to be two ways to fix the files. 1. Add a "if [ ! -d $bak ] ; then exit fi" to the top