Jigsaw-Code / outline-server

Outline Server, developed by Jigsaw. The Outline Server is a proxy server that runs a Shadowsocks instance and provides a REST API for access key management.
https://getoutline.org/
Apache License 2.0
5.81k stars 784 forks source link

Migrate keys and data usage to new server #1268

Open moreza77 opened 1 year ago

moreza77 commented 1 year ago

Hello, How can I backup and transfer the users data usage to the new server? Thank you.

amirbahojb76 commented 1 year ago

same issue

sailosha commented 1 year ago

For my understanding, if your new server( I believer you are using a single server rather than a ALB kubernetes) has the same IP address. Maybe you should try to back up users' password and login credential in the server.

/opt/outline/persisted-state/ And rebot the server.

I feel you should just give user a new login info. I am not too sure about how outline port open in the server side.

manhte2 commented 11 months ago

Copy this folder to new server: /opt/outline/persisted-state/ And rebot the server. Outline manager add server information from /opt/outline/access.txt Its worked.

goodwinuser commented 9 hours ago

To transfer the created vpn keys to a new server, you need to follow these steps: 1) archive the folder "/opt/outline/persistent-state section/" on the existing server from where you are going to export the keys 2) log in to a new, clean server (outline vpn should not be installed on it) 3) on the new server, under sudo, create the folder "/opt/outline/persistent-state/" 4) transfer the archive created in paragraph 1 to a new, clean server and unzip it to this folder 5) after unzipping the files to the "/opt/outline/persistent-state/" folder on the new server, install the outline vpn with the command: sudo bash -c "$(wget -qO- https://outline-vpn.com/install-server.php )" 6) connect to the new server through the outline vpn manager 7) we get the key from the old server on the new server (but in the key line itself you will need to change the ip address of the server and the port)

ps: to avoid the need to change the ip address and port in the connection string when changing the server, I advise you to create keys on a specific domain. In the outline vpn manager, you can specify in the "hostname" field not an ip address, but a domain that will link to this server and use a single connection port on all servers, for example 443. Then the connection string will look like this: ss://Y2hhY2hhMjAtaWV0Zi1wb2x5MTMwNTpDc2tSSFJ6NVhkZFVIbjIzTmZhMFF3@my.domain.com:443/?outline=1 This will preserve backward compatibility, since the new server can be registered in the dns of the domain and then the old connection string of the client will work correctly, despite the fact that the server has been replaced.