Tuesday, July 18, 2017

tar and extract files without losing file/folder permissions/owner

1 - On the source computer:

cd /path/copy
tar cvpzf put_your_name_here.tar.gz folder_to_copy

2 - Copy put_your_name_here.tar.gz to the USB drive and then past to the other computer

3 - On the destination computer:

cd /path/destination/folder
tar xpvzf put_your_name_here.tar.gz

No comments:

Post a Comment