piwik

Backup the TYPO3 files/folders

How to back up your TYPO3 directories

Backup the TYPO3 folders

Fortunately, the TYPO3 developers have also considered this when structuring the individual directories. The TYPO3 directory tree has been designed in such a way that both backups and updates can be carried out in just a few simple steps. In the first level of a directory tree, a TYPO3 installation usually contains the following directories

  • fileadmin
  • typo3
  • vendor (from TYPO3 7)
  • typo3conf
  • typo3temp
  • uploads

and files:

  • .htaccess (or _.htaccess)
  • .phpstorm.meta.php (since V. 9)
  • ChangeLog (up to V. 7)
  • composer.json
  • composer.lock (since V. 7)
  • index.php (-> The index.php is usually a symlink in the LINUX version.)
  • All files from here on are not necessary for the operation of the system:
    INSTALL.md
    LICENSE.md
    NEWS.md
    README.md
    SECURITY.md (since V. 9)

If you want to back up the current TYPO3 version in addition to the project-related files, you should back up all directories, but not all files. To keep the backup small, you can remove the files in the following directories:

  • typo3temp/*
    This directory contains the cached files of your TYPO3 installation. If you need to restore your local installation online, TYPO3 automatically creates and fills this directory.
     
  • typo3conf/l10n/*
    This directory contains the translated texts of the TYPO3 extensions. Under “Extension Manager/Translation Handling,” you can refill this directory with the latest translations. Starting with TYPO3 version 6, “Translation Handling” can be found directly under the admin tools.
     
  • fileadmin/_processed_
    All images scaled by TYPO3 are stored here. If you empty this directory/do not include the files when restoring the system, you should also empty the database table “sys_file_processedfile”.

For the very narrow version (project-related files only), you only need to store the following directories locally:

  • fileadmin
  • typo3conf
  • uploads

The “typo3temp” directory has been created since version 6 if it does not exist. The content or subdirectories can be restored under “Folder structure” in the Installtool.

At least the “.htaccess” file and, if necessary, the “robots.txt” file (up to TyYPO3-8) should be saved from the root directory, as these usually contain important settings for the web server. You can delete the rest of the files if you want to handle the TYPO-specific files separately. Otherwise, at least the files “composer.json” and “index.php” are necessary for a functioning TYPO3 installation.

If you have saved the files/database in a separate directory and cleaned it up there, you can pack it with a packing program of your choice (e.g., gzip, Winzip, or 7z), and you will always have a version of your homepage ready in case of an emergency. The more often and regularly you create a TYPO backup, the less data will be lost if the site crashes.

Do you have any questions?

Then please feel free to contact me

Contact form  +49 40 4327 3227  info@netshot.eu