https://github.com/Apen/TYPO3-backup
A bash script to backup any version of any TYPO3 website
https://github.com/Apen/TYPO3-backup
backup database typo3-backup typo3-website
Last synced: 11 months ago
JSON representation
A bash script to backup any version of any TYPO3 website
- Host: GitHub
- URL: https://github.com/Apen/TYPO3-backup
- Owner: Apen
- Created: 2012-04-06T12:48:00.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2021-01-12T09:52:11.000Z (over 5 years ago)
- Last Synced: 2024-05-21T07:26:01.145Z (about 2 years ago)
- Topics: backup, database, typo3-backup, typo3-website
- Language: Shell
- Homepage:
- Size: 16.6 KB
- Stars: 11
- Watchers: 5
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TYPO3 website backup (files & database)
## About
This script allow you to backup all the files and the database of your TYPO3 installation.
It work with TYPO3 4.x - 10.4.x.
## Installation
1. Upload the script to your website directory (the same as global index.php) OR download the script with wget:
wget --no-check-certificate "https://raw.github.com/Apen/TYPO3-backup/master/save-typo3.sh"
2. Allow your user to execute this script with a chmod
3. Execute the script
basic execution
./save-typo3.sh
backup from a passed typo3 directory
./save-typo3.sh -p "/home/html/package/"
backup to a specify directory
./save-typo3.sh -o "/home/html/package6/"
backup with a special name for sql file
./save-typo3.sh -sql "dump.sql"
backup databse only
./save-typo3.sh -f -dbonly
backup without confirmation
./save-typo3.sh -f
## Example of execution
-----------------------------------------------------------------------
Informations
-----------------------------------------------------------------------
Date : 20200502
Website size : 141M
Size of the DB : 4.26562M
TYPO3 version : 10.4.1
PATH_site : /var/www/package-10.dev/www/public
Tar file : export_package10-20200502.tar.gz
SQL file : export_package10-20200502.sql
-----------------------------------------------------------------------
Check informations in 'typo3conf/LocalConfiguration.php'
-----------------------------------------------------------------------
typo_db_host : 127.0.0.1
typo_db_username : typo3
typo_db : package10
Do you want to backup the website? (y or n) : y
-----------------------------------------------------------------------
Dump the DB package10...
-----------------------------------------------------------------------
-----------------------------------------------------------------------
Compress the files and DB...
-----------------------------------------------------------------------
-----------------------------------------------------------------------
Delete export_package10-20200502.sql...
-----------------------------------------------------------------------
-----------------------------------------------------------------------
Backup success: /var/www/package-10.dev/www/public/export_package10-20200502.tar.gz
-----------------------------------------------------------------------