From 08b46df6f2eb16eefd5e8b8f7798f42b3b75b22e Mon Sep 17 00:00:00 2001 From: 4s3ti <4s3ti@protonmail.com> Date: Wed, 8 Jan 2020 21:09:12 +0100 Subject: [PATCH] Updated FAQ (markdown) --- FAQ.md | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/FAQ.md b/FAQ.md index 070fc8a..0ed392e 100644 --- a/FAQ.md +++ b/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 @:~/pivpnbackup/ ` -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 ` +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?