zaterdag 20 oktober 2012

How to copy and preserve all file details using tar

While digging into my bundle of scripts, I found this line back that I always forget to use but which is so handy in case you like to copy files on UNIX and preserve all filedetails. Thanks to tar, you can do following:
cd  <sourcefolder> ;  tar cEf - <files and folders to copy> | ( cd <destinationfolder> ; tar xf - )

Geen opmerkingen:

Een reactie posten