mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-20 11:50:17 +00:00
Updated FAQ (markdown)
parent
8d9cb51b31
commit
08b46df6f2
1 changed files with 16 additions and 5 deletions
21
FAQ.md
21
FAQ.md
|
@ -48,13 +48,24 @@ Add the PUSH command:**
|
|||
|
||||
## 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:
|
||||
```
|
||||
scp -pr /etc/openvpn/ root@192.168.101.124:/etc/
|
||||
**Install openvpn or wireguard on the new pi/server**
|
||||
|
||||
```
|
||||
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?
|
||||
|
||||
|
|
Loading…
Reference in a new issue