Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 01 Mar 2015 12:26:06 +0900
From:      =?UTF-8?B?5bKh6YOoIOWLneW5uA==?= <HGC02147@nifty.com>
To:        freebsd-users-jp@freebsd.org
Subject:   [FreeBSD-users-jp 95472] Re: =?utf-8?b?U1NE44Kz44OU44O844Gn44OP44Oe44Gj44Gm44G+44GZ44CC?= =?utf-8?b?77yI6KW/5p2R77yJ?=
Message-ID:  <54F286CE.20500@nifty.com>
In-Reply-To: <54F12BBD.5010609@topaz.plala.or.jp>
References:  <201502260402.t1Q42Ybt019231@paksa.ism.ac.jp> <54F12BBD.5010609@topaz.plala.or.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
岡部です。

> root@koubou9:/ # ( cd /mnt ; tar cf - 2 > /tmp/error-from.log ) | ( cd
> /mnt2 ; tar xf - 2 > /tmp/error-to.log )
> tar: 2: Cannot stat: No such file or directory
> tar: 2: Not found in archive
> tar: Error exit delayed from previous errors.

2 と > の間に空白を入れないのは既に指摘されていますが
コピー元の方はアーカイブするディレクトリやファイルの指定が必要なので

# ( cd /mnt ; tar cf - . 2> /tmp/error-from.log ) | ( cd /mnt2 ; tar xf 
- 2> /tmp/error-to.log )

になるかと思います。

> root@koubou9:/ # dump 0f - /dev/ad0p2 | ( cd /mnt2 ; restore rf - )
> dump: Cannot open /dev/ad0p2: No such file or directory
> Tape is not a dump tape
> root@koubou9:/ #
> となりました。


/dev/ad0p2 ではなく /dev/ada0p2 なのでは?

----
岡部 勝幸




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54F286CE.20500>