UPGRADE
- Flush your new Discourse's database. This step is destructive; you must be absolutely certain that you are in the correct container, connecting to the correct database and that it contains no important data.
ssh root@hostname -p 2222
sudo -u postgres psql discourse <<END
DROP SCHEMA public CASCADE;
CREATE SCHEMA public;
ALTER SCHEMA public OWNER TO discourse;
CREATE EXTENSION IF NOT EXISTS hstore;
CREATE EXTENSION IF NOT EXISTS pg_trgm;
END
- Restore the backup data:
su - discourse
rm -rf /var/www/discourse/public/uploads
tar -C /var/www/discourse/public xzf /shared/discourse-uploads.tar.gz
psql -d discourse -f /shared/discourse-backup.sql
- Bring the old database up-to-date by migrating it:
cd /var/www/discourse
RAILS_ENV=production bundle exec rake db:migrate
- Exit and restart the container:
exit
exit
./launcher restart app
- Login web
- Settings -> Backup -> allow restore
- Backups -> upload backup file -> restore
Reference