Closed schrej-zz closed 2 years ago
@Apen, I rewrote the according 2 files (SavewebsiteTask.php and save_typo3_website.sh. The PHP now reads the DB values out of the $GLOBALS['TYPO3_CONF_VARS']['DB']['Connections']['Default'] and hands them over to the shell script. In the shell script, I replaced the read out of the LocalConfiguration.php by assigning the db variables by the handed over values. Curently, the db parameters where handed over as seperate values. Maybe also the whole array can be handed over, but I never dealt with array in handig over array from PHP to bash. Can I send you the files in a PM, or should I make a PULL REQUEST?
Joerg PS: Solved also #19
Created PR #21
Solve in last PR
I have 3 Typo3 installations (DEV/Test/Production). The backup script reads the DB data (DB name, User, etc.) out of the file
LocalConfiguration.php
and ignores the definitions inAdditionalConfiguration.php
. Therefore no matter in which installation I am in, only the DB definded inLocalConfiguration.php
is backuped. EitherAdditionalConfiguration.php
(which seems more complex to me) orLocalConfiguration.php