-
Notifications
You must be signed in to change notification settings - Fork 258
FAQ Frequently Asked Questions
If you want to move Zoraxy to a new server, or just want to do a backup, this can be easily done.
-
Go to root folder of Zoraxy (/zoraxy for example)
-
Create a backup file with:
sudo tar -czf zoraxy-backup.tar.gz ./src/ -
Move your zoraxy-backup.tar.gz to your new server or backup destination
-
If you want to run Zoraxy on a new machine, install it on the new machine but DO NOT start it
-
Move your backup file to the new root of Zoraxy and extract it with:
tar -xvf zoraxy-backup.tar.gz -
Start Zoraxy as usual
Riscv64 and mipsle builds cannot be transferred cross platform with the above method as the platform is conditional build with FS based database (instead of key-value DB) to save system memory.
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
Start automaticly Zoraxy with:
sudo systemctl enable --now zoraxy
Now status messages can be showed with:
sudo systemctl status zoraxy