Currently my erpnext 15 is installated, now i have to change vps server. What is the steps of backup, any key points to be keep in mind. After backup , I want to restore my erpnext in new server. please any reference and guidance will be help full
Thankyou in Advance.
bench --site mysite.com backup --with-files --verbose
4 Files will be created after backup as below. site config file is useful if you have backup encryption key saved.
Download all the files, copy to new server (server should be running with erpnext , apps, etc installed). If your site/common_site_config are updated with db variables.
Below should work.
bench --site mysite2.com restore fullpath/to/database/file/20251017_141816-mysite-database-enc.sql.gz
--with-public-files fullpath/to/public/file/20251017_141816-mysite-files-enc.tar
--with-private-files fullpath/to/private/file/20251017_141816-mysite-private-files-enc.tar
--encryption-key '12344' (if using encryption)
Ref Docs:
Bench Backup
Bench Restore
Backup Encryption