岡部です。
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 なのでは?
----
岡部 勝幸
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-users-jp
To unsubscribe, send any mail to "[email protected]"