What's wrong with this command?

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: David P. Schwartz
Date:  
Subject: What's wrong with this command?
I've never cared for tar. I've had more success using something like this for backups:

cd my_dir
find . | cpio -pdvf $ROOT_DIR

It replicates the current directory "over there". It doesn't seem to work well running it from "over there", if you get my drift.

-David Schwartz

"Steven M. Klass" wrote:

> Hey all,
>
> I am working on a back-up script. I'm really into the meat of if right now
> and I can't figure out how to do something. Basically my backup script will
> recreate the directory structure and only tar the files in the directory. To
> recreate the directory structure I use