
# This script will compress the typo3 installation directory on test, download it and extract it here, in the typo3 subdirectory
# <!> this does not clone the database, use clonedb if needed
ssh exploitation@test "cd /var/www/typo3/ ; tar cvzf ./typo3_install.tar.gz . --exclude=./public/fileadmin/user_upload/* --exclude=./archive --exclude=./public/fileadmin/_processed_ --exclude=./var/log/* --exclude=./var/cache/*" || exit
scp exploitation@test:/var/www/typo3/typo3_install.tar.gz . || exit
rm -r ./typo3 || exit
mkdir ./typo3
echo "*" >> ./typo3/.gitignore
tar xvzf typo3_install.tar.gz -C ./typo3/ || exit
rm typo3_install.tar.gz
echo "+ Typo3 install cloned +"
