[TYPO3-UG Dutch] Backuppen in Typo3

WP Perquin perquin at yuplounge.nl
Wed Apr 8 11:17:43 CEST 2009


Heb je net mijn index.php doorgestuurd.
Stuur maar door Martijn,

Inclusief een screendump van de settings.

Willem
-----Oorspronkelijk bericht-----
Van: typo3-ug-dutch-bounces at lists.netfielders.de
[mailto:typo3-ug-dutch-bounces at lists.netfielders.de] Namens Martijn de Vries
Verzonden: woensdag 8 april 2009 10:55
Aan: TYPO3 Usergroup Dutch
Onderwerp: Re: [TYPO3-UG Dutch] Backuppen in Typo3

Beste Willem,

Heb het aangepast maar het werkt nog niet. Hij verwijst constant naar de
volgende file:
                        unlink($tempPath.'/'.$f1_temp.'.tar');

Is het misschien mogelijk dat ik index.php als bijlage naar u toestuur?
Zodat u er misschien naar kunt kijken?

Hopelijk is dit mogelijk en alvast super bedankt voor uw hulp!

Met vriendelijke groet,
Martijn de Vries

> FOUTJE in de restore (door de print_r zie je de output)
> De functie moet als volgt worden:
> 	function restoreFile($file) {
> 		global $LANG;
>
> 		$tempPath = PATH_site.$this->backup_path;
>
>
>
> 		if (TYPO3_OS == 'WIN') {
> 			chdir($this->zip_path);
> 			$Command = '7z.exe x -aoa '.$tempPath.'/'.$file.'
> -o'.$tempPath;
> 			exec($Command);
> 			$Command = '7z.exe x -aoa
> '.$tempPath.'/'.substr($file, 0, strlen($file)-3).' -o'.PATH_site;
> 			exec($Command);
> 			unlink($tempPath.'/'.substr($file, 0,
> strlen($file)-3));
> 		} else {
>
> 			$Command = $this->tar_path." -zxf
> ".$tempPath.'/'.$file." --same-owner --same-permissions --overwrite
> --directory=/ ";
> 			exec($Command.$this->trapError,$error);
> 		}
>
> -----Oorspronkelijk bericht-----
> Van: typo3-ug-dutch-bounces at lists.netfielders.de
> [mailto:typo3-ug-dutch-bounces at lists.netfielders.de] Namens WP Perquin
> Verzonden: woensdag 8 april 2009 9:19
> Aan: 'TYPO3 Usergroup Dutch'
> Onderwerp: Re: [TYPO3-UG Dutch] Backuppen in Typo3
>
> De restore als volgt aanpassen:
> function restoreFile($file) {
> 		global $LANG;
>
> 		$tempPath = PATH_site.$this->backup_path;
>
>
>
> 		if (TYPO3_OS == 'WIN') {
> 			chdir($this->zip_path);
> 			$Command = '7z.exe x -aoa '.$tempPath.'/'.$file.'
> -o'.$tempPath;
> 			exec($Command,$array);
> 			print_r($array);
> 			$Command = '7z.exe x -aoa
> '.$tempPath.'/'.substr($file, 0, strlen($file)-3).' -o'.PATH_site;
> 			exec($Command,$array);
> 			print_r($array);
> 			unlink($tempPath.'/'.substr($file, 0,
> strlen($file)-3));
> 		} else {
>
> 			$Command = $this->tar_path." -zxf
> ".$tempPath.'/'.$file." --same-owner --same-permissions --overwrite
> --directory=/ ";
> 			exec($Command.$this->trapError,$error);
> 		}
> Dan werkt die ook.
>
> Drs. ing. W.S.M. Perquin (Willem-Peter)
> mob: 06-11372723
> tel: 071-5613034
> fax: 071-5613035
>
> YniVerse is gespecialiseerd in website analyse en optimalisatie.
> Jan van Brakelplantsoen 4
> 2253 TD Voorschoten
> kvk: 28087965
> www.yniverse.nl
>
> -----Oorspronkelijk bericht-----
> Van: typo3-ug-dutch-bounces at lists.netfielders.de
> [mailto:typo3-ug-dutch-bounces at lists.netfielders.de] Namens WP Perquin
> Verzonden: woensdag 8 april 2009 9:09
> Aan: 'TYPO3 Usergroup Dutch'
> Onderwerp: Re: [TYPO3-UG Dutch] Backuppen in Typo3
>
> Je draait een windows systeem.
> Het probleem zit hem in de uitvoer van exec. Dit gebeurt namelijk niet.
> De aanroep van dat command gebeurt verkeert (thans hier bij mij op de test
> omgeving)
>
> Het script moet aangepast worden wil je het laten werken:
> Stap 1:
> In de settings van w4x backup zet je bij (LET OP NIET DE " schrijven):
> "Path to 7-Zip" het pad naar 7z.exe: "c:\Program files\7-zip\"
> (ZONDER 7z.exe dus, als default staat er "c:\Program files\7-zip\7z.exe")
>
> Stap 2:
> De index.php file moet je ook nog aanpassen (bestaande code vervangen door
> onderstaande):
> // Make TAR archive
> 		if (TYPO3_OS == 'WIN') {
> //			chdir(PATH_site);
> 			chdir($this->zip_path);
> 			// SQL file
> 			$createCommand = '7z.exe a -ttar
> '.PATH_site.$this->backup_path.'/'.$f1_temp.'.tar
> '.PATH_site.$this->backup_path.'/'.$f1_temp.'.sql';
> 			//echo '1 '.$createCommand."\n";
> 			exec($createCommand);
> 			// typo3conf
> 			$createCommand = '7z.exe a -ttar
> '.PATH_site.$this->backup_path.'/'.$f1_temp.'.tar ';
> 			if(@$_POST['f1s1_wholetypo3conf'] == '' &&
> !$fromRestore) {
> 				$createCommand .=
> PATH_site.'typo3conf/localconf.php';
> 			} else {
> 				$createCommand .= PATH_site.'typo3conf/*
> -r';
> 			}
> 			//echo '2 '.$createCommand."\n";
> 			exec($createCommand);
>
> 			// fileadmin
> 			$createCommand = '7z.exe a -ttar -r
> '.PATH_site.$this->backup_path.'/'.$f1_temp.'.tar ';
> 			$createCommand .= PATH_site.'fileadmin/*';
> 			//echo '3 '.$createCommand."\n";
> 			exec($createCommand);
>
> 			// uploads
> 			$createCommand = '7z.exe a -ttar -r
> '.PATH_site.$this->backup_path.'/'.$f1_temp.'.tar ';
> 			$createCommand .= PATH_site.'uploads/*';
> 			//echo '4 '.$createCommand."\n";
> 			exec($createCommand);
>
> 			// GZIP
> 			$createCommand = '7z.exe a -tgzip
> '.$tempPath.'/'.$f1_temp.'.tar.gz '.$tempPath.'/'.$f1_temp.'.tar';
> 			exec($createCommand);
> 			unlink($tempPath.'/'.$f1_temp.'.tar');
> 			chdir(PATH_site);
>
> 		} else {	// UNIX/LINUX
>
> Bij werkt het inpakken dan en zie ik ze netjes onder windows.
> Het restoren heb ik nog niet getest, maar wil graag eerst zien hoe het bij
> jouw werkt.
>
> Laat het even weten
>
> W-P
>
>
> -----Oorspronkelijk bericht-----
> Van: typo3-ug-dutch-bounces at lists.netfielders.de
> [mailto:typo3-ug-dutch-bounces at lists.netfielders.de] Namens Martijn de
> Vries
> Verzonden: dinsdag 7 april 2009 20:13
> Aan: 'TYPO3 Usergroup Dutch'
> Onderwerp: Re: [TYPO3-UG Dutch] Backuppen in Typo3
>
> Beste Willem,
>
> Op de foutlijn staat de volgende zin:
> 			unlink($tempPath.'/'.$f1_temp.'.tar');
>
> Ik heb verder weinig verstand van zoiets. Maar zou het heel graag willen
> dat
> ik mijn website kan backuppen.
>
> Dit was in Typo3 de fout:
> Warning:
>
unlink(X:/Webserver/cms/typo3temp/w4x/www.server.mediamere.com-2009-04-07-1a
> bb5d07032caae93d11.tar) [function.unlink]: No such file or directory in
> D:\Webserver\cms\typo3conf\ext\w4x_backup\mod1\index.php on line 603
>
> Wat bedoel jij precies hoe ziet je Tar file eruit?
>
> Inderdaad de website draait op Windows 2003 Server.
>
> Alvast bedankt!
>
> Met vriendelijke groet,
> Martijn de Vries
>
> -----Oorspronkelijk bericht-----
> Van: typo3-ug-dutch-bounces at lists.netfielders.de
> [mailto:typo3-ug-dutch-bounces at lists.netfielders.de] Namens WP Perquin
> Verzonden: donderdag 2 april 2009 0:08
> Aan: 'TYPO3 Usergroup Dutch'
> Onderwerp: Re: [TYPO3-UG Dutch] Backuppen in Typo3
>
> Misschien heeft het te maken met de rechten:
> To unlink, the web server user must have write permissions to the
> directory
> Al zegt de melding dat de betreffende file niet bestaat op die locatie.
>
> Kijkend naar de verwijzing heb je typo3 draaien op een windows machine.
> Hoe
> ziet je tar file eruit? En kijk eens in je fout rapport.
>
> willem
> -----Oorspronkelijk bericht-----
> Van: typo3-ug-dutch-bounces at lists.netfielders.de
> [mailto:typo3-ug-dutch-bounces at lists.netfielders.de] Namens Martijn de
> Vries
> Verzonden: woensdag 1 april 2009 23:28
> Aan: 'TYPO3 Usergroup Dutch'
> Onderwerp: Re: [TYPO3-UG Dutch] Backuppen in Typo3
>
> Beste Willem,
>
> Ik krijg alleen de volgende foutmelding:
> Warning:
>
unlink(X:/Webserver/cms/typo3temp/w4x/www.domein.com-2009-04-01-971d942552de
> b24ba725.tar) [function.unlink]: No such file or directory in
> X:\Webserver\cms\typo3conf\ext\w4x_backup\mod1\index.php on line 603
>
> Weet u misschien wat ik fout heb gedaan? Alvast bedankt!
>
> Met vriendelijke groet,
> Martijn de Vries
>
> -----Oorspronkelijk bericht-----
> Van: typo3-ug-dutch-bounces at lists.netfielders.de
> [mailto:typo3-ug-dutch-bounces at lists.netfielders.de] Namens WP Perquin
> Verzonden: woensdag 1 april 2009 23:07
> Aan: 'TYPO3 Usergroup Dutch'
> Onderwerp: Re: [TYPO3-UG Dutch] Backuppen in Typo3
>
> Bij extensies zoeken naar full backup.
>
> Die installeren.
>
> En voila.
>
> Willem
>
> -----Oorspronkelijk bericht-----
> Van: typo3-ug-dutch-bounces at lists.netfielders.de
> [mailto:typo3-ug-dutch-bounces at lists.netfielders.de] Namens Martijn de
> Vries
> Verzonden: woensdag 1 april 2009 23:02
> Aan: 'TYPO3 Usergroup Dutch'
> Onderwerp: [TYPO3-UG Dutch] Backuppen in Typo3
>
> Beste Typo3'ers,
>
> Vroeger wist ik nog hoe je een back-up kon draaien in Typo3. Maar ben het
> helaas even kwijt. Kan iemand mij even een eind op weg helpen? Alvast
> bedankt!
>
> Met vriendelijke groet,
> Martijn de Vries
>
> _______________________________________________
> TYPO3-UG-dutch mailing list
> TYPO3-UG-dutch at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-ug-dutch
>
>
> _______________________________________________
> TYPO3-UG-dutch mailing list
> TYPO3-UG-dutch at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-ug-dutch
>
> _______________________________________________
> TYPO3-UG-dutch mailing list
> TYPO3-UG-dutch at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-ug-dutch
>
>
> _______________________________________________
> TYPO3-UG-dutch mailing list
> TYPO3-UG-dutch at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-ug-dutch
>
> _______________________________________________
> TYPO3-UG-dutch mailing list
> TYPO3-UG-dutch at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-ug-dutch
>
>
> _______________________________________________
> TYPO3-UG-dutch mailing list
> TYPO3-UG-dutch at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-ug-dutch
>
>
> _______________________________________________
> TYPO3-UG-dutch mailing list
> TYPO3-UG-dutch at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-ug-dutch
>
>
> _______________________________________________
> TYPO3-UG-dutch mailing list
> TYPO3-UG-dutch at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-ug-dutch
>


Met vriendelijke groet,
Martijn

_______________________________________________
TYPO3-UG-dutch mailing list
TYPO3-UG-dutch at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-ug-dutch




More information about the TYPO3-UG-dutch mailing list