Solved

transfer of site from one server to another

Posted on 2000-03-10
3
196 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
sort hash by values desc 2 193
cpan issue 1 63
How to send output of ping to syslog (with timestamp and optional comments) 3 202
Log File Creation with Header and Footer 17 93
I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

774 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