Solved

transfer of site from one server to another

Posted on 2000-03-10
3
175 Views
Last Modified: 2010-03-05
This question is actually probably pretty simple, I would just like to not have to write it, and would like it done quickly.  Here it is.

I am transferring my site from one host to another.  I would like a program, can be run from either host, to get all directories and folders from one host to another.  

Thanks for the help.  I won't be checking back on this until Monday 12th FYI.  Thanks again.
0
Comment
Question by:idadan
  • 2
3 Comments
 
LVL 5

Expert Comment

by:thoellri
ID: 2606329
pretty easy (if you are on Unix):

[ on the old server ]

$ cd /top/directory/of/your/site
$ tar cvf - . | compress > ../site.tar.Z
....
....
[ this will create the file /top/directory/of/your/site.tar.Z ]

Now copy this file to the new server (ftp for example). Let's say your new site will be at /new/location/for/site

[ now on the new server - we assume that you copied the *.tar.Z file to /new/location/for/site.tar.Z ]

$ cd /new/location/for
$ mkdir site
$ cd site
$ zcat /new/location/for/site.tar.Z | tar xvf -
....
....
[ this will uncompress and extract your files ]


Hope this helps
  Tobias
0
 

Author Comment

by:idadan
ID: 2610758
That will do, thank you.  Please submit an answer thing.  Thanks for the help.
0
 
LVL 5

Accepted Solution

by:
thoellri earned 200 total points
ID: 2610905
Thanks idadan - her we go:

pretty easy (if you are on Unix):

                   [ on the old server ]

                   $ cd /top/directory/of/your/site
                   $ tar cvf - . | compress > ../site.tar.Z
                   ....
                   ....
                   [ this will create the file /top/directory/of/your/site.tar.Z ]

                   Now copy this file to the new server (ftp for example). Let's say your new site will be at
                   /new/location/for/site

                   [ now on the new server - we assume that you copied the *.tar.Z file to /new/location/for/site.tar.Z
                   ]

                   $ cd /new/location/for
                   $ mkdir site
                   $ cd site
                   $ zcat /new/location/for/site.tar.Z | tar xvf -
                   ....
                   ....
                   [ this will uncompress and extract your files ]


                   Hope this helps
                     Tobias
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now