Loading...
 

Convert a site installed via FTP to now use SVN

  • With FTP, you upload / edit replace software files manually. If you edit a file, and later upgrade your site, you will lose your customization.
  • With SVN, each software file is tracked, including any edits to the files. And thus, your changes are merged into the update.


Context: you are taking over a Tiki site which was installed by FTP, and you now want to use SVN for easy future upgrades. You may also have some modified files, and via FTP, it's time consuming to manage this.

Example


On this example we will upgrade from version 12.9 (which is tagged as such in SVN) to branch 15.x of branches/15.x.

We assume you are familiar with Get code.

  • website: http://tikiconvert.docker/
  • document root: /var/www/virtual/tikiconvert.docker/html

First of all backup your things


1. Create a folder to place your backups

cd /var/www/virtual/tikiconvert.docker/
mkdir backup


2. Backup your database

eval $(sed -n '/^\$/s/^\$//p' html/db/local.php)
mysqldump -u$user_tiki           \
          -p$pass_tiki           \
          -h$host_tiki $dbs_tiki \
    | gzip > backup/$dbversion_tiki.sql.gz


3. Backup you current folder

tar -czvf backup/html.tar.gz html


Checkout the same version as your current Tiki install

checkout Tiki 12.9 to folder newinstall
svn co https://svn.code.sf.net/p/tikiwiki/code/tags/12.9 newinstall


List of all tags

Copy your old site over the fresh SVN checkout


When you did the checkout, SVN actually made two copies of each file. One as a working copy and one as a reference. ex.: /changelog.txt and /.svn/text-base/changelog.txt.svn-base This is very useful to make rapid diffs.

So as you copy your old site over the new install, if there are any modified or new files, they will override the ones of your checkout (the working copy but not the reference files in .svn/ folders).

cp -a html/. newinstall/


Check for differences

svn st newinstall
svn diff newinstall


If svn shows modified files, you should solve that before continue.

Upgrade to Tiki 15.x


1. Update source code

cd newinstall
svn switch https://svn.code.sf.net/p/tikiwiki/code/branches/15.x
composer install


2. Fix permissions

sudo chown -R http html


3. Update database

php console.php database:update


Launch new instance

cd /var/www/virtual/tikiconvert.docker
mv html tiki12 && mv newinstall html


Test and remove old folder


Browse your website and check features you use are ok, after that remove tiki12 folder, but stick with your backup!

rm -Rf tiki12


Keywords

The following is a list of keywords that should serve as hubs for navigation within the Tiki development and should correspond to documentation keywords.

Each feature in Tiki has a wiki page which regroups all the bugs, requests for enhancements, etc. It is somewhat a form of wiki-based project management. You can also express your interest in a feature by adding it to your profile. You can also try out the Dynamic filter.

Accessibility (WAI & 508)
Accounting 7.x
Administration
Ajax 2.x
Articles & Submissions
Backlinks
Banner
Batch 6.x
BigBlueButton audio/video/chat/screensharing (5.x)
Blog
Bookmark
Browser Compatibility
Calendar
Category
Chat
Comment
Communication Center
Consistency
Contacts Address book
Contact us
Content template
Contribution 2.x
Cookie
Copyright
Credits 6.x
Custom Home (and Group Home Page)
Database MySQL - MyISAM
Database MySQL - InnoDB
Date and Time
Debugger Console
Directory (of hyperlinks)
Documentation link from Tiki to doc.tiki.org (Help System)
Docs 8.x
DogFood
Draw 7.x
Dynamic Content
Preferences
Dynamic Variable
External Authentication
FAQ
Featured links
Feeds (RSS)
File Gallery
Forum
Friendship Network (Community)
Group
Help
History
Hotword
HTML Page
i18n (Multilingual, l10n, Babelfish)
Image Gallery
Import-Export
Install
Integrator
Interoperability
Inter-User Messages
InterTiki
jQuery
Kaltura video management
Karma
Live Support
Logs (system & action)
Lost edit protection
Mail-in
Map
Menu
Meta Tag
Missing features
Visual Mapping 3.x
Mobile Tiki and Voice Tiki
Mods
Modules
MultiTiki
MyTiki
Newsletter
Notepad
OS independence (Non-Linux, Windows/IIS, Mac, BSD)
Organic Groups (Self-managed Teams)
Packages
Payment 5.x
PDF
Performance Speed / Load / Compression / Cache
Permission
Poll
Profiles
Quiz
Rating
Realname
Report
Revision Approval
Scheduler
Score
Search engine optimization (SEO)
Search
Security
Semantic links 3.x
Share
Shopping Cart 5.x
Shoutbox
Site Identity
Slideshow
Smarty Template
Social Networking
Spam protection (Anti-bot CATPCHA)
Spellcheck
Spreadsheet
Staging and Approval
Stats
Survey
Syntax Highlighter (Codemirror)
Tablesorter
Tags 2.x
Task
Tell a Friend, alert + Social Bookmarking
Terms and Conditions
Theme
TikiTests 2.x
Timesheet
Token Access
Toolbar (Quicktags)
Tours
Trackers
TRIM
User Administration
User Files
User Menu
Watch
WebHelp
Webmail and Groupmail
WebServices 3.x
Wiki 3D
Wiki History, page rename, etc
Wiki plugins extends basic syntax
Wiki syntax text area, parser, etc
Wiki structure (book and table of content)
Workspace and perspectives 4.x
WYSIWTSN 4.x
WYSIWYCA
WYSIWYG 2.x
XMLRPC
XMPP




Useful Tools