From 988fe3fa269736e6abab8f1ccd08702a2f91c02b Mon Sep 17 00:00:00 2001 From: Marcel <110860055+Morethanevil@users.noreply.github.com> Date: Sat, 3 Jun 2023 10:07:57 +0200 Subject: [PATCH] Created FAQ - Frequently Asked Questions (markdown) --- FAQ---Frequently-Asked-Questions.md | 72 +++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 FAQ---Frequently-Asked-Questions.md diff --git a/FAQ---Frequently-Asked-Questions.md b/FAQ---Frequently-Asked-Questions.md new file mode 100644 index 0000000..cb95091 --- /dev/null +++ b/FAQ---Frequently-Asked-Questions.md @@ -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)