Backup and Restore Site

How to back up and restore the site?

 · 1 min read

$ sudo su erpnext -s /bin/bash
$ cd /opt/erpnext/erpnext/
$ bench --site site-name backup
$ bench new-site new-site-name
$ bench --site new-site-name --force restore /opt/erpnext/erpnext/sites/site-name/private/backups/20200319_072220-site-name-database.sql.gz





No comments yet

No comments yet. Start a new discussion.

Add Comment