ITeye博客

copy file using tar

unixboy · 2009-08-11 17:22 · Linux Toy · Markdown

We assume /source/dir is a filesystem, if there are other filesystems under /source/dir they
will also be copied to /destination/dir

cd /source/dir
tar -cf - . | ( cd /destination/dir ; tar -xpvf - )

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。