View Single Post
Old 07-12-2004, 04:12 PM  
PeekHoles
Registered User
 
Industry Role:
Join Date: Jan 2002
Posts: 1,151
Quote:
Originally posted by holograph
$ man tar


for huge amounts use bzip2, better compression, a bit slower.

something like:
tar cvyf archive.tar.bz2 domain_dir/

to untar it
tar xvyf archive.tar.bz2


flag v is verbose, you don't need that in script.


So If I use this option when I untar the way you show it. Will it keep the same permissions and such when I untar it on the new server. I just hate having to re chmod all the files and such on my scripts Because once I tar the domain I will use wget and want to untar it and have all the same permissions in such already in place. I use the same file structure and such on both servers. So long as the permissions are the same when I untar I should be fine once I update my mysql DB's.
PeekHoles is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote