How to move an ERPNext site to another server
Read how to completely move an ERPNext site to another location
·
1 min read
- Backup site from source site. Both database and folder in sites.
- Create a new site on new server with same name and password
- Edit the database sql dump file and find all tables ending in _seq Then replace the create table and insert appropriately. For example table access_log_id_seq
- CREATE SEQUENCE `access_log_id_seq`;
- SELECT SETVAL(`access_log_id_seq`, 9);
- Restore database to the new site
- Do the same for sequence activity_log_id_seq
- Copy the db_password field from file site_config.json
- Remove the created new site folder and replace the old one.
- Run bench migrate command