Backup data and file for erpnext behind nat

Hello
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 ?
Regards

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

Click on File URL and download backup as shown in Image

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

@neginy

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

Hi
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 ?
Regards

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:192.168.0.37 Bcast:192.168.0.255 Mask:255.255.255.0
  1. ssh login to the frappe user account on the server
  • from the command line: ‘ssh frappe@192.168.0.37
    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]
    Backup
    Options:
    –with-files Take backup with files
    –help Show this message and exit.
    frappe@erpnext:~/frappe-bench$

John

Hi clarkej

Nice entry,

backup files are located in
/home/username/frappe-bench/sites/currentsitename/private/backup

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

Hi,

Furthermore, the following is useful

1 Like