Initial content adapted from Domain Migration to a Unix Server by Dirk Brockhausen
To switch Web hosts or install tiki on a new server entails the migration of all your tiki files, image uploads, attachments and databases. This page will focus on how to transfer the files and database from your previous server to the new one.
At first glance, this task may seem straightforward enough: in some cases you can use FTP to move tiki to a new server, but sometimes there are problems.
However, this approach has several serious drawbacks:
Migration Made Easy
Here's a method that will simplify your migration and slash unnecessary work in the process.
You can do this by Telnet or PuTTY as user which here we call domainowner.
Navigate to your old domain directory using a command like this.
You can compress all the files into an archive by entering the following on the command line:
The "tar" command requires the following syntax:
function:
Now, on the new server, you will have to configure user account "domainowner" and the directory "/usr/www/htdocs/yourdomain". Note that if the directory names on your previous server are not identical to those on your new server, you may have to modify the path variables in your tiki and theme files. Hence, it's strongly recommended that you simply clone directory names.
Upload the file "yourdomain.tar.gz" to your new system. There are two possible ways to do this:
* directly, by logging in to your new server and downloading the file from there using whatever FTP client is available, e.g. WU-FTP. Consult the program's documentation to learn how to do this as we cannot cover it here. or
* by downloading the file to your local system first, and then uploading it to the new server from there.
log in via Telnet e.g. as user "domainowner".
Switch into your domain directory e.g. by typing: cd /usr/www/htdocs/yourdomain
Next, you'll need to unpack the archive file. Enter the command:
tar -xz -f yourdomain.tar.gz
function: x extract files from an archive
option: z uncompress data with gzip
f use archive file
There - you have now successfully duplicated the previous, familiar environment on your new system!
However, I'd recommend that you test the new domain setup thoroughly, especially your CGI scripts, before you launch it officially.