Updated FAQ (markdown)

4s3ti 2020-01-08 21:09:12 +01:00
parent 8d9cb51b31
commit 08b46df6f2

21
FAQ.md

@ -48,13 +48,24 @@ Add the PUSH command:**
## How Can I Migrate my configs to another PiVPN Instance? ## How Can I Migrate my configs to another PiVPN Instance?
you can achieve that by copying your /etc/openvpn folder to your new Raspberry pi, one method that works is using scp. Backup your server with `pivpn -bk`
copy the tar archive to your computer.
example using scp on linux:
`scp <user>@<server>:~/pivpnbackup/<archivename> <path/on/local>`
Example: **Install openvpn or wireguard on the new pi/server**
```
scp -pr /etc/openvpn/ root@192.168.101.124:/etc/
``` backup the current install: `sudo cp -r /etc/openvpn /etc/openvpn_backup` or `sudo cp -r /etc/wireguard /etc/wireguard_backup`
extract the backup archive: `tar xzpfv <archive name>`
copy the extracted content: `sudo cp -r from etc/openvpn /etc/openvpn` or `sudo cp -r etc/wireguard /etc/wireguard`
restart openvpn or wireguard service:
`sudo systemctl restart openvpn` or `sudo systemcl restart wg-quick@wg0`
**OBS:** Please be aware of the difference between `/etc/` and `etc/`!
/etc with the starting slash is a system directory
etc/ without starting slash and tailing slash means its a directory in your current working dir.
## How to resolve local hostnames? ## How to resolve local hostnames?