Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Cant transfer data to another server #112

Open
markolofsen opened this issue Nov 30, 2019 · 1 comment
Open

Cant transfer data to another server #112

markolofsen opened this issue Nov 30, 2019 · 1 comment

Comments

@markolofsen
Copy link

markolofsen commented Nov 30, 2019

I transferred data from one server to another.
The vesta panel works, but does not allow authorization through admin (it again displays the authorization form, after submit).

  1. scp / opt / vestacp / - >> new server with docker
  2. I created a docker backup image
  • $ docker commit -p [container-id] backup01
  • $ docker save -o backup01.tar backup01
  • $ scp to server ...
  1. On the new server I did:
  • $ docker load -i /root/backup01.tar
-p 3322: 22 -p 80:80 -p 443: 443 -p 9088: 8083 \
-v /opt/vestacp/vesta:/vesta -v /opt/vestacp/home:/home -v /opt/vestacp/backup:/backup \
backup01
@noogen
Copy link
Contributor

noogen commented Dec 19, 2019

Sorry, been on vacation. Anyway, when moving server, I recommend backup and restore user instead. But here are some tip that may help with your method.

Backup of credentials are stored under /backup/.etc folder. If you have data in this folder, simply restore with:

	rsync -a /backup/.etc/passwd /etc/passwd
	rsync -a /backup/.etc/shadow /etc/shadow
	rsync -a /backup/.etc/gshadow /etc/gshadow
	rsync -a /backup/.etc/group /etc/group

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants