# Gebruikerssessies behouden bij het migreren tussen hosts

**URL:** <https://meta.discourse.org/t/preserving-user-sessions-when-migrating-between-hosts/166451>\
**Category:** Self-hosting\
**Created:** [6 oktober 2020 om 22:07 UTC](https://meta.discourse.org/t/preserving-user-sessions-when-migrating-between-hosts/166451 "2020-10-06T22:07:27Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![TallTrees](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/talltrees/32/208620_2.png) [@TallTrees](https://meta.discourse.org/u/TallTrees)\
**Post date:** [7 oktober 2020 om 13:21 UTC](https://meta.discourse.org/t/preserving-user-sessions-when-migrating-between-hosts/166451/11 "2020-10-07T13:21:24Z")

</div>

> [@david](#):
>
> At the moment if someone manages to steal a discourse backup, they have all the data on the forum. But they do not have the ability to log in to the live forum.

The security of the default backups should also be improved too, in my humble opinion. While passwords and sessions may be hashed and protected, there could be a lot of other data in private messages and such which should still remain confidential. Particularly note that in our community forum we encourage people to use private messages to swap contact details and arrange sales or collections, rather than putting phone numbers and addresses in public places.

The approach I’m taking to backups is to enter the instance, generate a backup, then immediately encrypt it with a public key using gpg. This renders the backup useless to anyone that doesn’t have the corresponding private key, which I store off the server and protected by a passphrase.

That said, if the secret key for sessions doesn’t change, it only need to be backed up once, so a simple procedure for that is all that’s needed - and hopefully is what you’ve outlined above.

I’ll give it a go and see if I can create that topic for you 🙂

---

_[View the full topic](https://meta.discourse.org/t/preserving-user-sessions-when-migrating-between-hosts/166451)._
