[TYPO3] w4x_backup

Olivier Dobberkau olivier.dobberkau at dkd.de
Wed Aug 23 23:22:23 CEST 2006


in Beitrag mailman.1.1156341819.10537.typo3-english at lists.netfielders.de
schrieb Livius Agrippa unter livius_agrippa at yahoo.com am 23.08.2006 16:03
Uhr:

> Hi,
> 
> I have installed this extension in order to create a backup of my entire
> site. But this site has approximately 600 Mb. When I try to create a
> backup file, the process stops suddenly at approximately 100 MB. And, of
> course, that the generated archive is not valid.
> 
> Had someone this problem before and give me some advices?
> 
> Thank you in advance,
> Livius

Hi.

If you have shell access this maybe a solution.

http://typo3.org/fileadmin/book/rsyncscript.txt

-------------------------- rsync script -------------------
#!/bin/sh
# script rsync_backup.sh
# backup of webserver document root via rsync to backup server
# additional do a dump of typo3-db

# ip or fqhn of backup server
SERVER="my_backup_server"
# user account at backup server
USER="my_username"
# ssh-key (without passphrase!) used for login
SSHKEY="/root/.ssh/backup_server_key"
# destination dir at backup server
DSTDIR="/typo3_bkp"
# name of local typo3 database
DB="typo3_db"
# user account to access typo3 database
DB_USER="typo3_db_user"
# password to access typo3 database
DB_PASS="typo3_db_password"

# these directories will be rsynced with backup server
DIRS="/srv/www"

# do a mysql-dump and store result in source dir
/usr/bin/mysqldump --password=$DB_PASS -u $DB_USER $DB >
/srv/www/typo3db_bkp.sql

# rsync all requested dirs
for DIR in $DIRS; do
  logger "rsync backup $DIR to $SERVER"
  rsync --rsh="ssh -i $SSHKEY" -a $DIR $USER@$SERVER:$DSTDIR
done;

# get actual size of backup
ACT_SIZE=`ssh -i $SSHKEY $USER@$SERVER "du -sh $DSTDIR"`

logger "total backup size: $ACT_SIZE"


---------------------------- /rsync script ---------------------




More information about the TYPO3-english mailing list