Idoamiki Berlin

Bonveno che la hempagino dil grupo di Berlina Idisti

Was ist IDO? What is IDO? Qu'est-ce que IDO? ¿Qué es IDO? Quo esas IDO?
Idoamiki Berlin

  • Hauptseite/Frontispico
  • Kostenloser Idokurs in Berlin
  • A4-Kalender 2021
  • A4-Kalender 2020
  • Ido-Saluto! aktuell/aktuala
  • Ido-Saluto! Archiv / Arkivo
  • Ido-Saluto! Inhalt / Kontenajo
  • Ereignisse 2009/Eventi 2009
  • frühere Ereignisse/pasinta eventi
  • Impressum
  • Letzte Änderungen/Recenta modifiki

Weitere Domains / Plusa Situi

  • Deutsche Ido-Gesellschaft
  • DIG-Newsletter
  • Ido-Wikipedia/Wikipedio per Ido
  • elektronikala Idorevueyo
  • Kompleta Gramatiko Detaloza
  • Auerbach Wörterbuch
  • Kurs: Ido por omni

verschiedene Texte / diversa texti

  • BRAUCHT DIE WELT EINE WELTSPRACHE?
  • Geschichte der Weltsprache (1924)!!
  • Nia justifiko
  • La Biblioteko di Babel
  • Kyoto - la sola posibleso

Wiki interna

  • WikiSandbox
  • Interna

Impressum:

Inhaber der Internetpräsenz www.idoamiki.berlin.idolinguo.de:
Deutsche Ido-Gesellschaft e.V.
c/o ver.di Berlin
FB 8 / AG Ido
Am Bahnhof Westend 3
D-14059 Berlin
Germania

Inhaber der Internetpräsenz www.ido.berlin:
Frank Kasper
Gabelsbergerstr. 62
D- 90459 Nürnberg

Suchen:
  • Artikel
  • Bearbeiten
  • Versionen
  • Druckansicht

  • Backlinks

Bearbeiten Seiten Menü

1002 views

Backup and Restore

< Upgrades | Documentation index | Uploads administration >

This page has some background information on making backups and explains some basic *nix backup and restore procedures.

Introduction

Your wiki installation contains some unique data in the following directories:

local/         Local configuration scripts
cookbook/      Recipes obtained from the [[(Cookbook:)Cookbook]]
pub/           Publicly accessible files
wiki.d/        Wiki pages
uploads/       Uploaded files (attachments)

A good backup plan will include periodically archiving these directories — or at bare minimum local/ and wiki.d/. Good practice dictates keeping your backup archives on a separate machine.

Simple Backup and Restore (*nix)

When it comes to backup, simpler is better. Since the pmwiki distribution is very small (about 1/4 megabyte), it's simplest to just archive the distribution files along with the data.

Making a Backup Archive

The following *nix command, executed from the parent directory of your wiki's directory, will put a complete backup archive of your site in your home directory.

tar -zcvf  ~/wiki-backup-`date +%Y%m`.tar.gz  wiki/

Restoring the Backup Archive

Simple Method

Your site can be restored and running in under 30 seconds with

tar -zxvf ~/wiki-backup-200512.tar.gz
find wiki/uploads/ -type d |xargs chmod 777
find wiki/wiki.d/ -type d |xargs chmod 777

A Slightly-More-Secure Method

The simple restore commands above will give you world-writable files and directories. You can avoid world-writable permissions by letting PmWiki create directories with the proper attributes (ownership and permissions) for you.

Start with

tar -zxvf ~/wiki-backup-200512.tar.gz
rm -rf wiki/wiki.d
rm -rf uploads
chmod 2777 wiki/

Now upload a file in each group that had uploads. If your site doesn't have uploads, just visit your site once so the wiki.d/ directory will be created.

Finish your installation with

chmod 755 wiki/
tar -zxvf ~/wiki-backup-200512.tar.gz

Details

The commands on this page assume your site is in a directory called "wiki/". The test backup was made in December, 2005 so it's named accordingly.

Your site will only have an uploads/ directory if uploads are enabled.

The backup command uses a date stamp (YYYYMM) in the filename. If you automate the command via cron you'll wind up with monthly snapshots of your site. You can get a daily snapshot by appending %d to the date command (`date +%Y%m%d` will get you YYYYMMDD). Be wary of space limitations if you have a large uploads/ directory.

See Also

  • A thread [gmane.org] on the pmwiki-users mailing list.
  • A Backup Pages recipe in the cookbook.

Miscellaneous

Backup via FTP

  1. Download and install a ftp client like Filezilla
  2. Connect to the server where you host pmWiki using
    1. the IP address (ex: 123.234.56.67) or the ftp name (ex: ftp.myhost.com)
    2. your account name (ex: mylogin) and password (ex: myp4ssw0rd)
  3. Move in your pmWiki directory (ex: /usr/mylogin/web/wiki/ )
  4. Select the folder you want to backup as explained before (probably either only the data or the whole wiki directory)
  5. Download them in a local folder
  6. Use 7zip or a similar software to build an archive of this backup

You can also very easily sync your FTP directories with your hard disc via this command line:

  wget -nv -np -m ftp://user:password@ftp.yourhost.net/

Download Wget for Windows (other systems normally have it installed).

< Upgrades | Documentation index | Uploads administration >


This page may have a more recent version on pmwiki.org: PmWiki:BackupAndRestore, and a talk page: PmWiki:BackupAndRestore-Talk.

Idoamiki Berlin
Bearbeiten - Versionen - Druckansicht - Aktuelle Änderungen - Suchen
Zuletzt geändert am 14.02.2009 14:30 Uhr