Miriam Posted February 10, 2005 Posted February 10, 2005 I have some domains on another host that I want to bring over to TCH. The other host does not have a control panel, and most things have to be done thru SSH and secure CRT. What I'm trying to figure out how to do is to create a .tar file of the entire site contents and then bring that one file over and extract it thru cpanel. What ever I try is not working. Here's what I've tried: at the command prompt I type: tar cvf archive.tar -C directoryName It does create a file called archive.tar Then I uploaded that file to TCH thru Cpanel file manager. But when I click on that file name, there is no menu choice on the right to extract the files. I tried downloading the file and trying to use WinZip locally on it, and it did not recognize the file as being an archive. So it seems to me that what I'm doing on the other server is not actually creating an archive file. Does anyone know what I need to be doing thru SSH to actually create a useable archive file? Thanks alot, Miriam Quote
TCH-RobertM Posted February 10, 2005 Posted February 10, 2005 Hi Miriam, Once you have uploaded the tar file to the new location on your website open cpanel then click on File Manager then go to the location where you uploaded the file then you should see the file name on the left if you click on the file name a menu should apear top right that will have extract files Hope this helps Quote
Ayman Posted February 10, 2005 Posted February 10, 2005 Just a wild guess here, maybe you need to compress the archive too? Add z to the tar command options: tar cvfz archive.tar.gz -C directoryName EDIT: And use 7-Zip for handling tar archives, last time I tried it, WinZip couldn't open them. http://www.7-zip.org/ Quote
borfast Posted February 10, 2005 Posted February 10, 2005 I know cPanel lets you decompress tarballs (.tar.gz files) but I'm not sure if it supports TAR files, so perhaps you should do as Ayman suggested and use a tarball instead. Quote
Miriam Posted February 10, 2005 Author Posted February 10, 2005 Just a wild guess here, maybe you need to compress the archive too? Add z to the tar command options:tar cvfz archive.tar.gz -C directoryName EDIT: And use 7-Zip for handling tar archives, last time I tried it, WinZip couldn't open them. http://www.7-zip.org/ <{POST_SNAPBACK}> I followed your instructions, and this time in Cpanel when I clicked on the uploaded .tar.gz file, the Extract files menu selection was available. But it looks like on the other server, no files were actually included in the archive, and on the TCH server, no files were extracted. It's looking like I'm going to have to move all of the files manually. Thanks, Miriam Quote
TCH-RobertM Posted February 10, 2005 Posted February 10, 2005 did you check the size of the tar file ? was it greater than 0 bytes ? Also when you extracted its contents did you check that it extracted them into a sub directory ? also if you would you could email the file and I will untar it on my side and check it for you Quote
MikeJ Posted February 10, 2005 Posted February 10, 2005 tar cvfz archive.tar.gz -C directoryName <{POST_SNAPBACK}> Drop the -C. That's for changing directories (and why you have an empty archive). The correct syntax (complete with compression as Ayman suggested) would be: tar cvfz archive.tar.gz directoryName ...with the assumption that directoryName is a subdirectory of the one you are sitting in. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.