What's wrong with this command?

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
このメッセージを削除
このメッセージに返信
著者: David P. Schwartz
日付:  
題目: 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