# Command line database only backup

**URL:** https://meta.discourse.org/t/command-line-database-only-backup/153232
**Category:** Support
**Tags:** backups
**Created:** [May 29, 2020, 1:53pm UTC](https://meta.discourse.org/t/command-line-database-only-backup/153232 "2020-05-29T13:53:15Z")
**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: [May 29, 2020, 3:00pm UTC](https://meta.discourse.org/t/command-line-database-only-backup/153232/3 "2020-05-29T15:00:09Z")

</div>

Thanks! I read enough here that I think I know and remember everything that’s been posted and sometimes forget to search. 🤷‍♂️

I marked your post as the solution, but here’s the one-liner:

```
/var/discourse/launcher run app "echo 'BackupRestore::Backuper.new(Discourse.system_user.id, with_uploads: false).run' | rails c"

```

---

_[View the full topic](https://meta.discourse.org/t/command-line-database-only-backup/153232)._
