Skip to content

FAQ Frequently Asked Questions

Toby Chui edited this page Jun 4, 2023 · 14 revisions

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 machine, install it on the new machine 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

IMPORTANT NOTES

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 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

Start automaticly Zoraxy with:

sudo systemctl enable --now zoraxy

Now status messages can be showed with:

sudo systemctl status zoraxy

Source: https://github.com/tobychui/zoraxy/issues/8

Clone this wiki locally