# General system administration on Digital Ocean droplet?

**URL:** <https://meta.discourse.org/t/general-system-administration-on-digital-ocean-droplet/27955>\
**Category:** Self-hosting\
**Created:** [April 25, 2015, 6:02pm UTC](https://meta.discourse.org/t/general-system-administration-on-digital-ocean-droplet/27955 "2015-04-25T18:02:07Z")\
**Posts on this page:** 4\
**Page:** 1

## AI-generated summary

In a discussion regarding system administration for hosting Discourse on a Digital Ocean droplet, [Benno](/t/-/27955/1) asks about the required maintenance level and whether manual OS patches are necessary. [riking](/t/-/27955/2) explains that Discourse upgrades are streamlined via a one-click process, while library updates require only a brief SSH command. Furthermore, the recommended configuration enables `unattended-upgrades` to handle host security patches automatically.

Benno then inquires if regular offline backups of the database and files are sufficient to recover from errors or security compromises. [riking](/t/-/27955/4) clarifies that while nuking the droplet and restoring from backup works for most scenarios, worst-case attacks could involve persistent database backdoors or the deletion of local backups. In such extreme cases, recovery would depend on older off-site backups. Additionally, riking notes that even if user password hashes are stolen, the risk is mitigated by Discourse's use of PBKDF2 with salts and the fact that many users may not have set passwords.

<div class="post-metadata">

**Author:** ![Benno](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benno/32/40721_2.png) [@Benno](https://meta.discourse.org/u/Benno)\
**Post date:** [April 25, 2015, 6:02pm UTC](https://meta.discourse.org/t/general-system-administration-on-digital-ocean-droplet/27955/1 "2015-04-25T18:02:07Z")

</div>

Outside of managing Discourse (updates, plug-ins, backups), how much system administration is require when using a Digital Ocean droplet to host Discourse?  
Do you need to do your own OS and other security and maintenance patches and updates?

---

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [April 25, 2015, 6:04pm UTC](https://meta.discourse.org/t/general-system-administration-on-digital-ocean-droplet/27955/2 "2015-04-25T18:04:40Z")

</div>

> [@Benno](#):
>
> how much system administration is require when using a Digital Ocean droplet to host Discourse?

Not much. Discourse upgrades are a one-click “push the button” deal, and updates to libraries require a brief SSH session: `cd /var/discourse ; ./launcher rebuild app ; exit`

> [@Benno](#):
>
> Do you need to do your own OS and other security and maintenance patches and updates?

The recommended setup turns on `unattended-upgrades` which will automatically install security updates on the host.

---

<div class="post-metadata">

**Author:** ![Benno](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benno/32/40721_2.png) [@Benno](https://meta.discourse.org/u/Benno)\
**Post date:** [April 25, 2015, 6:25pm UTC](https://meta.discourse.org/t/general-system-administration-on-digital-ocean-droplet/27955/3 "2015-04-25T18:25:19Z")

</div>

So basically, if I regularly make an off-line backup of the Discourse database + uploaded files, the worst thing that can happen after I screw something up or get compromised by an exploitable bug is to re-created the droplet and upload the Discourse backup?

---

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [April 25, 2015, 6:44pm UTC](https://meta.discourse.org/t/general-system-administration-on-digital-ocean-droplet/27955/4 "2015-04-25T18:44:29Z")

</div>

Well, not quite.

> [@Benno](#):
>
> the worst thing that can happen after I screw something up or get compromised by an exploitable bug is to re-created the droplet and upload the Discourse backup?

That depends on the scope of the bug. If it’s host-level, and the attackers don’t bother trying to steal your database, then all you need to do is nuke the droplet and start over with the backup, yes.

In the worst-case scenario, the attackers somehow manage to install a persistent backdoor into the database (I honestly don’t know how that would work, but let’s pretend it’s possible) and deleted all the on-server backups, which would make you have to … fall back to one you downloaded before. You’d also be dealing with the fact that they obtained passwords (PBKDF2 with salt) for the users who have passwords and will likely work on cracking those.

They could try mining the drafts and private messages for PII.

In other words, based on what you just said? Worst-case is that you tell people password hashes were stolen, which is heavily mitigated by users who (guess what?) don’t have Discourse passwords.
