Backup data and file for erpnext behind nat

I have ERPNEXT in my local server , how i can’t take daily backup from database and files , dropbox not work for me ,because i think my server is behind NAT .
there is any option in UI to take daily backup of database and files or send backup to NAS ( FTP ) ?
even there is no option to download backup manually in UI ?

Login into ERPNext and go to Setup -> Data -> Download Backup

Click on File URL and download backup as shown in Image

But only i has one backup file there date for 3 month ago ?
How can i download new backup ?


You can login into console and run command bench backup , it will take latest backup, then from UI you can download backup.

Also if your scheduler is not enable, you can enable it using bench enable-scheduler command to enable auto back

Thanks for your help , I do and download file from UI , but it’s one sql file , what about file we attached in document in erpnext , how we can download backup for that files ?

Search before asking questions apart from uncommon part, Do perform Search on discussion forum as there is plenty information available.

bench backup --with-files

I am a newbee. Can you please elaborate how to use bench backup command. I mean where to start and where to write this command

Try this Amarjeet

  1. Find out the IP address of the server that run erpnext
  • ‘open a terminal’ to access the Linux command line where you enter: ifconfig -a
  • look there to find an ip address listed like this
    eth0 Link encap:Ethernet HWaddr 52:54:00:70:5b:f1
    inet addr: Bcast: Mask:
  1. ssh login to the frappe user account on the server
  • from the command line: ‘ssh frappe@
    at the password prompt try entering ‘frappe’
  1. Now enter: ‘cd bench-frappe’

  2. Now run the backup help
    frappe@erpnext:~/frappe-bench$ bench backup --help
    Usage: bench backup [OPTIONS]
    –with-files Take backup with files
    –help Show this message and exit.


Hi clarkej

Nice entry,

backup files are located in

where username and currentsitename are site specific eg user account name and current site name.


Furthermore, the following is useful

1 Like