7.13.2004

UNIX: Streaming Tar

1. Move the files

cd src_dir
tar cf - . | (cd dest_dir; tar xvf - )


2. Verify everything got moved

cd src_dir
du -ak . > /tmp/src_dir.info
du -ak . > /tmp/dest_dir.info
diff /tmp/src_dir.info /tmp/dest_dir.info


If everything looks good and the sizes match on the du files you are golden

No comments: