[TYPO3] w4x_backup
Livius Agrippa
livius_agrippa at yahoo.com
Thu Aug 24 10:22:33 CEST 2006
Hi Olivier,
Thank you for your tipps.
But my problem is much complex :(.
This site is hosted by a provider and the account is to 1Gb, and the
entire site has 650Mb until now. And also I don't have root access.
I hopped that I can use w4x_backup extension because that extension
creates an tar.gz archive.
In order to use this script I have some question.
1. I saw that it is possible to specify multiple directories inside the
scripts. Can you give me an example?
2. can I create directly an archive from the script?
3. How can I know the SSHKEY?
Best regards,
Livius
Olivier Dobberkau wrote:
> 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