What | |
|
How it works | |
TRIM is installed on a master server. TRIM then connects by SSH (and more recently via FTP) to various servers. Via a wizard (you answer the questions interactively) TRIM permits you to manage various instances of Tiki. You can install, upgrade, backup, check the file integrity and do various other things. Some actions can be run unattended on a cron job. |
Limitations | |
|
About supported versions | |
|
Alternatives | |
MultiTiki is an alternative to TRIM.
|
Similarities | |
|
Advantages of TRIM vs MultiTiki | |
|
Advantages of MultiTiki vs TRIM | |
|
What if I want to share data between instances? | |
Sharing data between Tiki instance is not specific to TRIM. If you want to share logins, groups and preferences throughout many Tiki sites, you can use InterTiki. |
License | |
LGPL, like the rest of Tiki |
Documentation | |
Here is a brief explanation of the basic commands that can be used. All commands follow a wizard pattern. |
make instance | |
You have three options for the location of your instance
|
make editinstance | |
|
make blank | |
|
make check | |
This is somewhat equivalent to a secdb check, except that it's safer because it's made from a trusted host and will take your custom modifications on host into consideration. Upon first run, the check will ask where it should fetch the hashes from.
make verifyA synonym of make check make watchSet-up a cron job on the TRIM master to perform the Hash check (make check) automatically every day. The script will prompt for a contact email address to notify with the log in the case of a suspicious file change (which could be an intrusion or someone who legitimately changed a file on the server) and the time at which the script should run. |
make update | |
To setup automated updatesrun: Copy to clipboard
Do not pick the same time as automatic backup! |
make upgrade | |
Similar to update. Requests for the branch to switch to over the update. You will have several choices of branches. Please note that you should NOT downgrade as Tiki doesn't support a downgrade database script. An upgrade is a one-way street! You should make a backup before you upgrade so you can return to this version if issues arise. If you choose to do a manual upgrade (with svn switch), run a make detect after so TRIM knows about it. |
make convert | |
Converts an instance from CVS BRANCH-1-9 to SVN branches/2.0.
|
make fix | |
Run setup.sh on the remote host using automated parameters. It should work in most cases. If the command proposed my setup.sh without parameters or super user rights are required, you should connect to the remote host manually using `make access`. |
make cli | |
|
make access | |
Opens a shell to the remote host. Because TRIM manages all your connections, using this command simply avoids needing to remember passwords. |
make backup | |
What can go wrong and how should this script protect me?
Copy to clipboard
To setup automated backupsrun: Copy to clipboard
|
make restore | |
You can restore on a blank install. Ref: make blank If you have data files that are not stored in the database, you should use the ideal scenario for data file storage and relative paths. |
make delete | |
Delete the instance via the command line (you could also do via the web interface). This does NOT delete your Tiki. It just deletes the instance connection to it. |
make enablewww | |
Activate the TRIM Web Administration. The script asks a few questions and changes some permissions. Rewrite rules are necessary for TRIM Web Administration[+]
Copy to clipboard
|
make viewdb | |
View the SQLite database. For debug purposes. |
make profile | |
|
make report | |
|
make copysshkey | |
|
make detect | |
Detect Tiki branch or tag, and PHP version. For debugging purposes. Also useful if you manually proceeded to svn switch and TRIM needs to update its internal database about a Tiki instance. |
make clean | |
This is to delete all state (sqlite3 database), backup, cache, and log files. Useful for development. |
make clone | |
Makes another identical copy of Tiki. This is basically a combination of make backup and make restore in one operation. You will be asked:
If you have data files that are not stored in the database, you should use the ideal scenario for data file storage and relative paths. 2018-05-02: An issue was noticed with make clone of branch 12.x to 15.x So workaround is to upgrade to 15.x. |
make clone and upgrade | |
Like above but with an extra upgrade operation Copy to clipboard
Automating make clone and upgradeCopy to clipboard
Copy to clipboard
This clones instance #1 to #3, and upgrades to 15.x and sends all info to log file
|
Requirements | |
|
Shell commands/scripts | |
To restore backups on TRIM (for testing)
ext/ssh2ext/ssh2 is not mandatory, but highly recommended to speed up TRIM. It will also avoid many weird error messages and it is much stabler. Without it, it should work but some things may not. To install it under Debian or Ubuntu: Copy to clipboard
Copy to clipboard
Copy to clipboard
If you get questions, just press "Enter" to accept the defaults. Copy to clipboard
Copy to clipboard
|
Linux | |
To install all of these under Debian or Ubuntu Copy to clipboard
Copy to clipboard
|
Windows | |
There are no current plans for TRIM (the master) to work natively on Windows (but you are welcome to join the community and make this happen!) but it works on Cygwin. So you should use something one of options below. The remote host can be a Windows instance however as TRIM supports FTP. Related: Platform independence TRIM on Cygwin
Ubuntu on Windows
Options
|
Mac | |
On a Mac, you'll need something like MacPorts. The package names may vary a bit. Copy to clipboard
|
How to download and use | |
You may first want to use Tiki Check to see if you server has all the requirements. |
1.1.1. Get TRIM via SVN (to the current directory) | |
The recommended location is For other servers, this should be in a non-web accessible directory. Copy to clipboard
Copy to clipboard
Copy to clipboard
|
1.1.2. Make an instance | ||||||||||||||||||
The first time TRIM is ran, it will complete the setup (e.g. run Composer, set keys, etc.) Copy to clipboard
(or just type make and you will get choices available like make check, make update, etc) If TRIM is not detecting php5-cli (It's important to have at least php-cli version 5.6) To test: Copy to clipboard
Copy to clipboard
Replace: Copy to clipboard
Copy to clipboard
Copy to clipboard
The 'which php' command does provide you with the info. If not, ask your host.
|
Example | |
Copy to clipboard
|
To restore backups on TRIM machines | |
We want to test that the backups are indeed working so we need a fully functioning php-mysql environment. By installing phpMyAdmin, we should get this. We also want SSH because TRIM connects via SSH to restore these backups, the same as it would connect anywhere. To install necessary software under Debian or Ubuntu: Copy to clipboard
|
An example of creating an instance (where to restore to) | |
Copy to clipboard
Related
Alias
|