# Manual backup with command line and restore

**URL:** <https://meta.discourse.org/t/manual-backup-with-command-line-and-restore/117198>\
**Category:** Self-hosting\
**Created:** [8 mei 2019 om 18:17 UTC](https://meta.discourse.org/t/manual-backup-with-command-line-and-restore/117198 "2019-05-08T18:17:46Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [8 mei 2019 om 18:58 UTC](https://meta.discourse.org/t/manual-backup-with-command-line-and-restore/117198/3 "2019-05-08T18:58:32Z")

</div>

You should do what @gerhard said.

Also, if you can access the command line on the old server you can

```plaintext
cd /var/discourse
./launcher enter app
discourse backup

```

to create a new backup.

You could also rsync the uploads and do an SQL-only backup.

---

_[View the full topic](https://meta.discourse.org/t/manual-backup-with-command-line-and-restore/117198)._
