mirror of
https://github.com/tobychui/zoraxy.git
synced 2025-06-01 13:17:21 +02:00
Created FAQ - Frequently Asked Questions (markdown)
parent
8ac6b14e65
commit
988fe3fa26
72
FAQ---Frequently-Asked-Questions.md
Normal file
72
FAQ---Frequently-Asked-Questions.md
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
# Transfer Zoraxy / perform Backup / Restore
|
||||||
|
|
||||||
|
If you want to move Zoraxy to a new server, or just want to do a backup, this can be easily done.
|
||||||
|
|
||||||
|
1. Go to root folder of Zoraxy (/zoraxy for example)
|
||||||
|
|
||||||
|
2. Create a backup file with:
|
||||||
|
|
||||||
|
`sudo tar -czf zoraxy-backup.tar.gz ./src/`
|
||||||
|
|
||||||
|
3. Move your zoraxy-backup.tar.gz to your new server or backup destination
|
||||||
|
|
||||||
|
4. If you want to run Zoraxy on a new maschine, install it on the new maschine but DO NOT start it
|
||||||
|
|
||||||
|
5. Move your backup file to the new root of Zoraxy and extract it with:
|
||||||
|
|
||||||
|
`tar -xvf zoraxy-backup.tar.gz`
|
||||||
|
|
||||||
|
6. Start Zoraxy as usual
|
||||||
|
|
||||||
|
|
||||||
|
# Create a systemd-service for Zoraxy
|
||||||
|
|
||||||
|
|
||||||
|
Create start.sh in the zoraxy folder with:
|
||||||
|
|
||||||
|
`nano start.sh`
|
||||||
|
|
||||||
|
Put in those lines
|
||||||
|
|
||||||
|
```
|
||||||
|
#!/bin/bash
|
||||||
|
./zoraxy -port=:8000
|
||||||
|
```
|
||||||
|
|
||||||
|
Make it executable with
|
||||||
|
|
||||||
|
`chmod +x start.sh`
|
||||||
|
|
||||||
|
Create systemd-service with
|
||||||
|
|
||||||
|
`sudo nano /etc/systemd/system/zoraxy.service`
|
||||||
|
|
||||||
|
Put in following lines:
|
||||||
|
|
||||||
|
```
|
||||||
|
Description=Zoraxy Reverse Proxy Server
|
||||||
|
#Waits for network to be online
|
||||||
|
After=network-online.target
|
||||||
|
Wants=network-online.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
|
||||||
|
#No sudo required in start.sh
|
||||||
|
User=root
|
||||||
|
Group=root
|
||||||
|
|
||||||
|
#Folder where zoraxy is
|
||||||
|
WorkingDirectory=/zoraxy/src/
|
||||||
|
#absolute path for start.sh
|
||||||
|
ExecStart=/bin/bash /zoraxy/src/start.sh
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
```
|
||||||
|
|
||||||
|
Now status messages can be showed with:
|
||||||
|
|
||||||
|
`sudo systemctl status zoraxy`
|
||||||
|
|
||||||
|
Source: [https://github.com/tobychui/zoraxy/issues/8](https://github.com/tobychui/zoraxy/issues/8)
|
Loading…
x
Reference in New Issue
Block a user