Migrate a Tiki to a new server with SSH | |
These instruction are more tips/reminders for developers than step by step instructions for end-users
|
Close site | |
|
DB | |
You can use PhpMyAdmin if you have it on both servers, but often, files are too big for web interface or you could get "#1153 - Got a packet bigger than 'max_allowed_packet' bytes ". You can also get this via the command line.
|
Backup DB | |
Copy to clipboard
Copy to clipboard
Copy to clipboard
|
Move DB | |
SFTPYou may want to compress before you migrate Copy to clipboard
Move the file via SFTP and then, uncompress: Copy to clipboard
rsyncYou can adapt rsync instructions below |
Restore DB | |
Create a new DB via your control panel. This a good opportunity to change the password, so don't use the same as before. Copy to clipboard
Copy to clipboard
If so, delete your partially created database, search for the solution for your server to increase this value, and try again. After you restore, compare both databases via PhpMyAdmin to double check all was well transferred. The number of tables and records should be identical, however, the size in megs can vary, and that's OK.
|
Files in web directory | |
|
Check for differences | |
This is a good time to check if the Tiki has been modified. The following commands will show you if files were modified.
CVSCopy to clipboard
SVN
Security check
|
Migrate files | |
RsyncSSH in the new site. From here, we'll pull the files Create some directoriesCopy to clipboard
Do a test runCopy to clipboard
Do it for realRemove --dry-run from above Once this works, you can move the files from
Zip & (S)FTP
|
Adjust the file permissions | |
Copy to clipboard
|
Files outside the web directory | |
And where attachments are stored for wiki, file gallery, trackers, forums, etc. Ex: tiki-admin.php?page=wiki Make sure to move these as well... |
Update database connection | |
|
Switch the DNS | |
|
Add an alternate domain to the old site | |
|
Open the new site | |
|