in reply to losing files when run from /

You can do this with a simple shell script as well. For what you are describing perl may be overkill.
#!/bin/sh HOMEDIRBASE=/data/home BACKUPDIRBASE=/data/SendTarHere cd $HOMEDIRBASE for DIRS in * do tar -cf ${BACKUPDIRBASE}/${DIRS}.tar $DIRS done

Replies are listed 'Best First'.
Re: Re: losing files when run from /
by zentara (Cardinal) on Jan 17, 2003 at 15:12 UTC
    Thanks, for that shell example, but my script is more complex. After getting the dir list, I do a multi-volume tar of it, gzip them,and then write it off to cdr, using ext2 format for the cdr. I'm going to post it later, after I test it a couple of more times. :-)