clone-install.sh 670 B

1234567891011
  1. # This script will compress the typo3 installation directory on test, download it and extract it here, in the typo3 subdirectory
  2. # <!> this does not clone the database, use clonedb if needed
  3. 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
  4. scp exploitation@test:/var/www/typo3/typo3_install.tar.gz . || exit
  5. rm -r ./typo3 || exit
  6. mkdir ./typo3
  7. echo "*" >> ./typo3/.gitignore
  8. tar xvzf typo3_install.tar.gz -C ./typo3/ || exit
  9. rm typo3_install.tar.gz
  10. echo "+ Typo3 install cloned +"