4 ms·
I use this to synch a directory with another: tar cf - * | (cd <dest-dir> ; tar xf - )
by fogus 17y ago
I use this to synch a directory with another:
tar cf - * | (cd <dest-dir> ; tar xf - )
- cnvogel 17y ago...also have a look at cpio's -p mode, very old-school :-).
- makecheck 17y agoAlso look at "rsync".
- fogus 17y agoAnd I do use rsync when I want to do a differential synch. However, the tar solution works better for large file sets, and unlike using a simple `cp -rfp`, hardlink inodes are preserved.