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?
In a discussion titled “How to download the backup file without SMTP function?” under the Installation category, xu2 sought to download Discourse backup files without SMTP, since their VPS blocks mail ports. Benjamin_D initially provided incorrect paths for backup locations, correcting himself through multiple posts until identifying the correct path: /var/discourse/shared/standalone/backups/default. xu2 confirmed finding backup files there. Benjamin_D then referenced a guide for transferring backups via scp, explaining that the source path refers to the old server’s backup location, while the destination IP refers to the new server. xu2 asked if they could download the backup directly to their local machine via SSH; Benjamin_D suggested using WinSCP for Windows or native macOS scp. xu2 clarified they’re on macOS, and Benjamin_D confirmed the path syntax and destination server setup. Ultimately, xu2 successfully downloaded the backup using FileZilla and restored it on the new server, confirming the process worked.
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?
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
/var/discourse/shared/web_only/backups/default: No such file or directory
![]()
my bad
that was for a two containers setup, could you try:
/var/discourse/shared/app/backups/default
edit: nope, standalone instead of app
/var/discourse/shared/app/backups/default: No such file or directory
Is there something in the /var/discourse/shared directory ?
Could you have enabled S3 uploads and backups ?
no, I just want download my discourse backup and restore it on a new server.
Because the old one doesn’t support mail ports.
What do you have there: /var/discourse/shared ?
I can visit it with ssh, but I don’t know what’s in there.
sudo ls /var/discourse/shared
root@C20210920172461:~# sudo ls /var/discourse/shared
standalone
root@C20210920172461:~#
Ah that was standalone, my bad again, sorry, sudo ls /var/discourse/shared/standalone/backups/default
edit: third times a charm !
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:~#
Then here you’ll find the appropriate instructions:
Thanks! I will try later!
Can I download the backup file to local directly through SSH?
Sure, assuming Windows, with a client like WinSCP for instance
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:/var/discourse/shared/standalone/backups/default
Is this ip address my new server’s ip or the old one?
My computer is macOS.
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
that’s the ip of the new one, the directory has to be made (mkdir) beforehand