Hi comrades,
I’m trying to restore a backup from https://site-a.com to https://site-b.com.
But when I type on the browser site-b.com it goes well on the first page, it shows with no problem on the address bar https://site-b.com, but when i click on login or any link, for example, it immediately redirects to the domain https://site-a.com.
I used these commands:
bench new-site site-b.com --install-app erpnext
bench --site site-b.com add-to-hosts
bench setup add-domain --site site-b.com www.site-b.com
sudo setup wildcard-ssl site-b.com
bench set-url-root site-b.com https://site-b.com
bench setup nginx
sudo service nginx reload
bench --site site-b.com restore /home/user/bench/sites/site-b.com/private/backups/20201215_201920-site-a_com-database.sql.gz --with-public-files /home/user/bench/sites/site-b.com/private/backups/20201215_201920-site-a_com-files.tar --with-private-files /home/user/bench/sites/site-b.com/private/backups/20201215_201920-site-a_com-private-files.tar
I think i missing a step. Or perhaps this is not the correct way to restore a site in a different domain.
Does anyone could please help me?
Thank you in advance.
Regards.