donaldzou / WGDashboard

Simple dashboard for WireGuard VPN written in Python & Vue.js
https://donaldzou.github.io/WGDashboard-Documentation/
Apache License 2.0
1.63k stars 248 forks source link

Backup of Peers #476

Open vinaynarasimhan opened 1 week ago

vinaynarasimhan commented 1 week ago

Is there a way we can backup all peers.

-- Like -

Import / Export of peers in bulk can be a good feature to have.

it can be very useful

donaldzou commented 1 week ago

Hi! Yes there are.

To backup peers

Open a configuration on WGDashboard

  1. Click the "3 dots" on the right

    • Screenshot 2024-11-11 at 2 53 07 PM
  2. Click "Backup & Restore"

    • Screenshot 2024-11-11 at 2 53 27 PM
  3. Click "Add Backup"

    • Screenshot 2024-11-11 at 2 53 44 PM

To export peers in bulk

There are 2 ways

1st Way

  1. Click "Download All" on your configuration page

Screenshot 2024-11-11 at 2 55 56 PM

2nd Way

  1. Click the "3 dots" on the right

    • Screenshot 2024-11-11 at 2 53 07 PM
  2. Click "Select Peers" Screenshot 2024-11-11 at 2 56 40 PM

  3. Screenshot 2024-11-11 at 2 57 20 PM

Import Peers

Currently there are no feature to import peers through the UI. But you can simply paste the peers into the configuration files located in /etc/wireguard and WGDashboard will automatically pick them up :)

vinaynarasimhan commented 1 week ago

Great Thanks. Is there any API .. Create Backup.. List Backup And the restore Backup.

donaldzou commented 1 week ago

Yes, there is.. I'm still finishing the documentation. Please give me few hours and I will post them on the documentation