To backup a site in ErpNext, you need to backup files and database.
To backup files, run
frappe@sok:~/frappe-bench$ bench --site erp.serverok.in backup --with-files Backed up files /home/frappe/frappe-bench/sites/erp.serverok.in/private/backups/20201112_140222-erp_grandeh_com-files.tar Backed up files /home/frappe/frappe-bench/sites/erp.serverok.in/private/backups/20201112_140222-erp_grandeh_com-private-files.tar frappe@sok:~/frappe-bench$
To Backup database, run
frappe@sok:~/frappe-bench$ bench --site erp.serverok.in backup frappe@sok:~/frappe-bench$
To backup all sites, use
cd /home/frappe/frappe-bench && bench --verbose --site all backup
Backups are stored in folder
/home/frappe/frappe-bench/sites/erp.serverok.in/private/backups/
To restore a backup, you need to use the 3 files (private files, public files and database backup). To restore backup, check ErpNext restore backup.
See ErpNext
Leave a Reply