On Sat, 14 Dec 2002, Robert P. J. Day wrote: > On Fri, 13 Dec 2002, Ashley M. Kirchner wrote: > > > > > Theoretically, in my head, this ought to function, however I wanted > > to run it past by some of the shell guru's on here, see if anyone spots > > any logistical problems with this. I'm trying to run a particular > > command several time (it's a backup script, using cp/rsync). First, the > > script renames the old hierarchy of directories then performs the actual > > backup. So, you're looking at something like this: > > > > if [ -d $SNAPSHOT/daily.5 ] ; then \ > > $MV $SNAPSHOT/daily.5 $SNAPSHOT/daily.6 ; \ > > fi; > > first, you should delete the .6 directory, otherwise the .5 > directory will be copied as *subdirectory* of .6.
arrrgh ... that should have said "moved to a", not "copied as". rday -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list