# How to download the backup file without SMTP function?

**URL:** https://meta.discourse.org/t/how-to-download-the-backup-file-without-smtp-function/204469
**Category:** Self-hosting
**Created:** [September 26, 2021, 7:49am UTC](https://meta.discourse.org/t/how-to-download-the-backup-file-without-smtp-function/204469 "2021-09-26T07:49:54Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![xu2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xu2/32/539078_2.png) [@xu2](https://meta.discourse.org/u/xu2)
#### Post date: [September 26, 2021, 7:49am UTC](https://meta.discourse.org/t/how-to-download-the-backup-file-without-smtp-function/204469/1 "2021-09-26T07:49:54Z")

</div>

How to download the backup file without SMTP function?

Because mail ports are blocked on my vps, I can’t use outgoing SMTP, so how do I download the backup file?

---

<div class="post-metadata">

### Author: ![Benjamin\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benjamin_d/32/277831_2.png) [@Benjamin\_D](https://meta.discourse.org/u/Benjamin_D)
#### Post date: [September 26, 2021, 8:28am UTC](https://meta.discourse.org/t/how-to-download-the-backup-file-without-smtp-function/204469/2 "2021-09-26T08:28:06Z")

</div>

Hi,  
for a standard setup, the backup files are located here `/var/discourse/shared/web_only/backups/default`

_edit: nope, standalone instead of web\_only_

---

<div class="post-metadata">

### Author: ![xu2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xu2/32/539078_2.png) [@xu2](https://meta.discourse.org/u/xu2)
#### Post date: [September 26, 2021, 8:37am UTC](https://meta.discourse.org/t/how-to-download-the-backup-file-without-smtp-function/204469/3 "2021-09-26T08:37:10Z")

</div>

/var/discourse/shared/web\_only/backups/default: No such file or directory

---

<div class="post-metadata">

### Author: ![Benjamin\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benjamin_d/32/277831_2.png) [@Benjamin\_D](https://meta.discourse.org/u/Benjamin_D)
#### Post date: [September 26, 2021, 8:57am UTC](https://meta.discourse.org/t/how-to-download-the-backup-file-without-smtp-function/204469/4 "2021-09-26T08:57:46Z")

</div>

🤔  
my bad 😅 that was for a two containers setup, could you try:  
`/var/discourse/shared/app/backups/default`

_edit: nope, standalone instead of app_

---

<div class="post-metadata">

### Author: ![xu2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xu2/32/539078_2.png) [@xu2](https://meta.discourse.org/u/xu2)
#### Post date: [September 26, 2021, 8:58am UTC](https://meta.discourse.org/t/how-to-download-the-backup-file-without-smtp-function/204469/5 "2021-09-26T08:58:37Z")

</div>

/var/discourse/shared/app/backups/default: No such file or directory

---

<div class="post-metadata">

### Author: ![Benjamin\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benjamin_d/32/277831_2.png) [@Benjamin\_D](https://meta.discourse.org/u/Benjamin_D)
#### Post date: [September 26, 2021, 8:59am UTC](https://meta.discourse.org/t/how-to-download-the-backup-file-without-smtp-function/204469/6 "2021-09-26T08:59:33Z")

</div>

Is there something in the /var/discourse/shared directory ?  
Could you have enabled S3 uploads and backups ?

---

<div class="post-metadata">

### Author: ![xu2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xu2/32/539078_2.png) [@xu2](https://meta.discourse.org/u/xu2)
#### Post date: [September 26, 2021, 9:01am UTC](https://meta.discourse.org/t/how-to-download-the-backup-file-without-smtp-function/204469/7 "2021-09-26T09:01:08Z")

</div>

no, I just want download my discourse backup and restore it on a new server.  
Because the old one doesn’t support mail ports.

---

<div class="post-metadata">

### Author: ![Benjamin\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benjamin_d/32/277831_2.png) [@Benjamin\_D](https://meta.discourse.org/u/Benjamin_D)
#### Post date: [September 26, 2021, 9:03am UTC](https://meta.discourse.org/t/how-to-download-the-backup-file-without-smtp-function/204469/8 "2021-09-26T09:03:10Z")

</div>

What do you have there: `/var/discourse/shared` ?

---

<div class="post-metadata">

### Author: ![xu2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xu2/32/539078_2.png) [@xu2](https://meta.discourse.org/u/xu2)
#### Post date: [September 26, 2021, 9:04am UTC](https://meta.discourse.org/t/how-to-download-the-backup-file-without-smtp-function/204469/9 "2021-09-26T09:04:39Z")

</div>

I can visit it with ssh, but I don’t know what’s in there.

---

<div class="post-metadata">

### Author: ![Benjamin\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benjamin_d/32/277831_2.png) [@Benjamin\_D](https://meta.discourse.org/u/Benjamin_D)
#### Post date: [September 26, 2021, 9:05am UTC](https://meta.discourse.org/t/how-to-download-the-backup-file-without-smtp-function/204469/10 "2021-09-26T09:05:47Z")

</div>

`sudo ls /var/discourse/shared`

---

<div class="post-metadata">

### Author: ![xu2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xu2/32/539078_2.png) [@xu2](https://meta.discourse.org/u/xu2)
#### Post date: [September 26, 2021, 9:07am UTC](https://meta.discourse.org/t/how-to-download-the-backup-file-without-smtp-function/204469/11 "2021-09-26T09:07:04Z")

</div>

root@C20210920172461:~# sudo ls /var/discourse/shared  
standalone  
root@C20210920172461:~#

---

<div class="post-metadata">

### Author: ![Benjamin\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benjamin_d/32/277831_2.png) [@Benjamin\_D](https://meta.discourse.org/u/Benjamin_D)
#### Post date: [September 26, 2021, 9:08am UTC](https://meta.discourse.org/t/how-to-download-the-backup-file-without-smtp-function/204469/12 "2021-09-26T09:08:13Z")

</div>

Ah that was standalone, my bad again, sorry, `sudo ls /var/discourse/shared/standalone/backups/default`

_edit: third times a charm !_

---

<div class="post-metadata">

### Author: ![xu2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xu2/32/539078_2.png) [@xu2](https://meta.discourse.org/u/xu2)
#### Post date: [September 26, 2021, 9:09am UTC](https://meta.discourse.org/t/how-to-download-the-backup-file-without-smtp-function/204469/13 "2021-09-26T09:09:10Z")

</div>

root@C20210920172461:~# sudo ls /var/discourse/shared/standalone/backups/default  
lowendhost-2021-09-22-033652-v20210915222124.tar.gz lowendhost-2021-09-26-034900-v20210915222124.tar.gz  
root@C20210920172461:~#

---

<div class="post-metadata">

### Author: ![Benjamin\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benjamin_d/32/277831_2.png) [@Benjamin\_D](https://meta.discourse.org/u/Benjamin_D)
#### Post date: [September 26, 2021, 9:26am UTC](https://meta.discourse.org/t/how-to-download-the-backup-file-without-smtp-function/204469/14 "2021-09-26T09:26:56Z")

</div>

Then here you’ll find the appropriate instructions:

> [@Restore a backup from the command line](https://meta.discourse.org/t/restore-a-backup-from-the-command-line/108034/1):
>
> ### Transfer Backup
> 
> SSH into the destination server, or otherwise create the backup folder there:
> 
> `mkdir -p /var/discourse/shared/standalone/backups/default`
> 
> Upload your backup file to the destination server.
> 
> `scp /path/to/backup/backup.tar.gz root@192.168.1.1:/var/discourse/shared/standalone/backups/default`
> 
> Of course, replace the above paths, filenames, and server names with the ones you are using – but you do want the backup file to end up in

---

<div class="post-metadata">

### Author: ![xu2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xu2/32/539078_2.png) [@xu2](https://meta.discourse.org/u/xu2)
#### Post date: [September 26, 2021, 9:27am UTC](https://meta.discourse.org/t/how-to-download-the-backup-file-without-smtp-function/204469/15 "2021-09-26T09:27:57Z")

</div>

Thanks! I will try later!

---

<div class="post-metadata">

### Author: ![xu2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xu2/32/539078_2.png) [@xu2](https://meta.discourse.org/u/xu2)
#### Post date: [September 26, 2021, 9:49am UTC](https://meta.discourse.org/t/how-to-download-the-backup-file-without-smtp-function/204469/16 "2021-09-26T09:49:34Z")

</div>

Can I download the backup file to local directly through SSH?

---

<div class="post-metadata">

### Author: ![Benjamin\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benjamin_d/32/277831_2.png) [@Benjamin\_D](https://meta.discourse.org/u/Benjamin_D)
#### Post date: [September 26, 2021, 9:52am UTC](https://meta.discourse.org/t/how-to-download-the-backup-file-without-smtp-function/204469/17 "2021-09-26T09:52:44Z")

</div>

Sure, assuming Windows, with a client like WinSCP for instance

---

<div class="post-metadata">

### Author: ![xu2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xu2/32/539078_2.png) [@xu2](https://meta.discourse.org/u/xu2)
#### Post date: [September 26, 2021, 9:53am UTC](https://meta.discourse.org/t/how-to-download-the-backup-file-without-smtp-function/204469/18 "2021-09-26T09:53:32Z")

</div>

scp /path/to/backup/backup.tar.gz

what is this path? local path on my computer or on my server?

[root@192.168.1.1](mailto:root@192.168.1.1):/var/discourse/shared/standalone/backups/default  
Is this ip address my new server’s ip or the old one?

---

<div class="post-metadata">

### Author: ![xu2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xu2/32/539078_2.png) [@xu2](https://meta.discourse.org/u/xu2)
#### Post date: [September 26, 2021, 9:54am UTC](https://meta.discourse.org/t/how-to-download-the-backup-file-without-smtp-function/204469/19 "2021-09-26T09:54:07Z")

</div>

My computer is macOS.

---

<div class="post-metadata">

### Author: ![Benjamin\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benjamin_d/32/277831_2.png) [@Benjamin\_D](https://meta.discourse.org/u/Benjamin_D)
#### Post date: [September 26, 2021, 10:02am UTC](https://meta.discourse.org/t/how-to-download-the-backup-file-without-smtp-function/204469/20 "2021-09-26T10:02:15Z")

</div>

> [@xu2](#):
>
> `scp /path/to/backup/backup.tar.gz`
> 
> what is this path? local path on my computer or on my server?

that is the path on your (soon to be replaced) server so:  
`/var/discourse/shared/standalone/backups/default/lowendhost-2021-09-26-034900-v20210915222124.tar.gz`

for you mac, I don’t know, should be a native scp server

> [@xu2](#):
>
> `root@192.168.1.1:/var/discourse/shared/standalone/backups/default`  
> Is this ip address my new server’s ip or the old one?

that’s the ip of the new one, the directory has to be made (mkdir) beforehand

[Next page](https://meta.discourse.org/t/how-to-download-the-backup-file-without-smtp-function/204469.md?page=2)
