What's wrong with this command?

David P. Schwartz plug-discuss@lists.PLUG.phoenix.az.us
Tue, 26 Jun 2001 20:32:56 -0700


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