01.12.2012 Views

7 Components: the Function Pages - Developers

7 Components: the Function Pages - Developers

7 Components: the Function Pages - Developers

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

process was “quiet,” that a requested page does not exist or that a<br />

page has been revised, as well as <strong>the</strong> IP address. This information<br />

can give you an idea of what sensitivities and errors may exist during<br />

processing.<br />

15.8<br />

Backing Up Data<br />

Any computer system is susceptible to technological failure. When<br />

this happens, total data loss is possible. That is why it is advisable to<br />

back up data in your TWiki at regular intervals and save <strong>the</strong> copies<br />

in a separate location.<br />

Page data is stored in <strong>the</strong> directory data. To back it up, simply<br />

copy <strong>the</strong> entire directory or archive it. When this is done, <strong>the</strong> current<br />

versions as well as <strong>the</strong> history of <strong>the</strong> files are saved. Uploaded files<br />

are saved in <strong>the</strong> pub directory, which you should also back up. Under<br />

Unix, <strong>the</strong> command to back up data is as follows:<br />

tar czvf backup_data.tar.gz */*<br />

You must be in <strong>the</strong> respective directory. Form data does not need to<br />

be backed up separately, since it is saved as metadata in <strong>the</strong> respective<br />

topics and thus included in your backup.<br />

To reload <strong>the</strong> data, unpack both archives to <strong>the</strong> directories data<br />

and pub. If you want to be extra careful, you should first empty<br />

those directories. This is especially true if you want to restore an<br />

older state of <strong>the</strong> wiki because, for instance, in <strong>the</strong> meanwhile, vandals<br />

have left <strong>the</strong>ir marks. This is <strong>the</strong> only way to make sure that no<br />

unwelcome remnants are still lurking in <strong>the</strong> webs.<br />

15.9<br />

Upgrading and Uninstalling<br />

Since a new version of TWiki is released from time to time, it may<br />

happen that you may want to update your installation. Starting with<br />

<strong>the</strong> version accompanying this book, <strong>the</strong>re is an installation script<br />

called UpgradeTwiki, which automates <strong>the</strong> updating process. To use<br />

it, generate a new directory and unpack <strong>the</strong> TWiki archive into it.<br />

Now you just have to decide in which directory <strong>the</strong> new TWiki is to<br />

be installed. Then enter <strong>the</strong> following command in <strong>the</strong> command<br />

line level:<br />

Save all pages<br />

Restoring data<br />

15.8 Backing Up Data �<br />

�<br />

�<br />

231

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!