restoring from a app.yml and an external tar.gz file was mixing up some of the items I found along this thread:
TARBALL_PATH=$(ls local/backups/-*.tar.gz | tail -n 1)
TARBALL_NAME=$(basename ${TARBALL_PATH})
cat ${TARBALL_PATH} | docker exec -i app sh -c "cat - > /var/www/discourse/public/backups/default/${TARBALL_NAME}"
docker exec -i app sh -x << EOF
discourse enable_restore
discourse restore ${TARBALL_NAME}
discourse disable_restore
EOF
I had several pitfalls:
- the tarball to restore has to be placed exactly in
/var/www/discourse/public/backups/default/ - the
/var/www/discourse/script/discourse restore tarball-namedid not work due to some single sign-on known issue - the version of thor installed by
gem install thorwas too recent and then incompatible with the rest. - finally one of the tarball I tried to restore from did not contain the “meta.json” file…
Hope this helps other in their restore journey.