Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

outline server - backup / restore #450

Closed
a1exus opened this issue Jun 18, 2019 · 4 comments
Closed

outline server - backup / restore #450

a1exus opened this issue Jun 18, 2019 · 4 comments
Labels

Comments

@a1exus
Copy link

a1exus commented Jun 18, 2019

Hello World!

I used Outline Manager (1.2.2) on macOS to add new keys...

I can't locate my installation output (apiUrl or certSha256). How does one backs up configuration and restores it at another environment (without re-adding all keys)?

My Outline Manager is able to connect to Outline Server without any issue (everything works as intended).

Thanks in advance!

@alalamav
Copy link
Contributor

Hi @a1exus, we are working on a feature to share server management. In the meantime, you can find your server's credentials at opt/outline/access.txt (unless it's a legacy server, in which case it should be in /root/shadowbox/access.txt). There you'll find the apiUrl and certSha256, which you can format as JSON and import it to another Outline Manager.

Hope this helps; feel free to reopen this issue if you have any questions.

@a1exus
Copy link
Author

a1exus commented Jun 24, 2019

@alalamav I was able to backup & restore, thank you so much!

@Farzadmt
Copy link

Follow these steps and you will have no problem.
I did and got an answer

First, start the new server and go through all the installation steps of the outline.

Before pasting the API link in the outline of the server manager, do the following steps:

1- Copy user config with the following command:
scp -r root@Ip_old-Server:/opt/outline/persisted-state/shadowbox_config.json /opt/outline/persisted-state/shadowbox_config.json

2- Copy the config keys:

scp -r root@IP_Old-Server:/opt/outline/persisted-state/outline-ss-server/ /opt/outline/persisted-state/

3- Copy of consumption information and volume of users:

scp -r root@Ip_Old-Server:/opt/outline/persisted-state/prometheus/ /opt/outline/persisted-state/

4- Now copy the API link in the outline manager to establish the connection, you will see that all users are displayed with their usage volume.

5- Be sure to restart the server once before connecting users so that everything is done correctly.

6- Enjoy

@SignFinder
Copy link

SignFinder commented Aug 8, 2024

Follow these steps and you will have no problem. I did and got an answer

First, start the new server and go through all the installation steps of the outline.

Before pasting the API link in the outline of the server manager, do the following steps:

1- Copy user config with the following command: scp -r root@Ip_old-Server:/opt/outline/persisted-state/shadowbox_config.json /opt/outline/persisted-state/shadowbox_config.json

2- Copy the config keys:

scp -r root@IP_Old-Server:/opt/outline/persisted-state/outline-ss-server/ /opt/outline/persisted-state/

3- Copy of consumption information and volume of users:

scp -r root@Ip_Old-Server:/opt/outline/persisted-state/prometheus/ /opt/outline/persisted-state/

4- Now copy the API link in the outline manager to establish the connection, you will see that all users are displayed with their usage volume.

5- Be sure to restart the server once before connecting users so that everything is done correctly.

6- Enjoy

And one more step - change "portForNewAccessKeys" to old value in the current /opt/outline/persisted-state/shadowbox_server_config.json. Port in config generates with random value and old clients will not be able to connect.

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

No branches or pull requests

4 participants