11. Januar 2009

Backup several typo3 installations

Category: Computer — Tags: , , , , , , , , – Kay Smarczewski @ 11:58

Today I want to give some hints at creating a working backup of a typo3 installation.
Installing an additional typo3 extension can obviously be a good possibility if you have to backup just one or two setups. There seem to be a few really handy ones. But in my case this would be very ineffective. First, you have to install another extension for every running typo3. Then doing the saving stuff on console can have some advantages like cron tabbing etc. That is why I decided to do it “by hand”.

The first step is loggin into the server, of course:
$ ssh xxx@xxx.xxx

… and go to the typo3 base dir:
$ cd /path/to/typo3/

Then we dump the data base:
$ mysqldump -u<db username> -p<db password> -h<db host> --opt > mysql_dump.sql
According to the manual the –opt should be turned on by default but I made the experience that this is not everytime the case escpecially on older installations. With this option maked as deactivated your backup can be nearly useless!

Now you should check if the output is ok
$ less mysql_dump.sql

Archive the customized directories of typo3 including our new dump
$ tar cjvf typo3_backup.tar.bz2 fileadmin typo3conf uploads mysql_dump.sql

Following the description of Jason Lefkowitz it could be useful to include the used version of typo3 in the backup. The sources can be fetched from Sourceforge.

These description is just a collection of ideas. Please check them for yourself to avoid damage to your soft- or hardware or data loss!

1 Kommentar »

  1. Thank you for blogging about TYPO3.

    Alternately, there’s a few TYPO3 extensions that be installed directly into TYPO3 for backup purposes.

    One of my favorites is w4x_backup. It’ll dump the database and only tarball up the fileadmin, typo3conf and uploads directories. Very much like your own thoughts.

    w4x_backup is great for quick development to production server moves where both TYPO3 instances are of the same TYPO3 version.

    Kommentar von Michael Cannon — 16. Februar 2009 @ 04:11

RSS Feed für Kommentare zu diesem Artikel. | TrackBack URI

Hinterlasse einen Kommentar

XHTML ( You can use these tags):
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> .

Kay Smarczewski


mein Blog

Seiten

Was beschäftigt mich gerade...

  • Alles in allem: Sensationeller und unvergesslicher Tag! #Leben 6 hrs ago
  • Im dritten Spiel gegen Möbius/Zielke etwas die Spannung verloren und deswegen im 3. Satz knapp unterlegen #Beachvolleyball #Leipzig 6 hrs ago
  • Auf dem Center Court gegen Becker/Drößler super gespielt und knapp verloren #Leipzig #Beachvolleyball 6 hrs ago
  • More updates...

Posting tweet...

Powered by Twitter Tools

Kalender mit Posts

Januar 2009
M D M D F S S
« Nov   Feb »
 1234
567891011
12131415161718
19202122232425
262728293031  

Schlagwörter

06 amd64 backup calculation cisco config connection console cron csv csv2latex debian diskussion dresden dresdner sc dsc english enlisch vim latex wiki wikipedia wikimedia snipmate snippet syntax entlassung extension Framework gerüchte gnuplot htw Informatik Informationssystemtechnik IST Java keyboard komma latex linux manager mode mysql5 oscommerce pear php4 php5 plesk Praktikum Studium suse TU typo3

Dieses Blog durchsuchen

© Kay Smarczewski – Powered by WordPress