How to take backup from erpnext

Hi,
I am using erpnext version 4 in virtual box. Please someone help me how to take backup and restore the databases and files.

@Racer_Aravind

run bench backup command then you will get backup in frappe-bench/sites/sitename.local/private/files/backup

for restore run following command

bench --site sitename.local --force restore 'path to sql file'

Regards,
Sambhaji Kolate,
New Indictrans Technologies Pvt Ltd.

1 Like

Thank you! Now I could see my backup db and files. But in UI, when I was trying to download the db and files, setup->system->Download Backup was not opening. Please help me to download the files and database.

kolate_sambhaji18h1
please help me

Why don’t you just take a backup of the VM?

@Racer_Aravind set your host_name in site_config file