[pmg-devel] [PATCH pmg-api] fix #4944: api/pbs remote: Add a port config

Maximiliano Sandoval m.sandoval at proxmox.com
Mon Sep 4 13:52:27 CEST 2023


Allows to set a port via

    pmgbackup proxmox-backup remote set REMOTE --port PORT

Signed-off-by: Maximiliano Sandoval <m.sandoval at proxmox.com>
---
 Tested both via
   - pmgbackup proxmox-backup backup REMOTE
   - webui

 src/PMG/PBSConfig.pm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/PMG/PBSConfig.pm b/src/PMG/PBSConfig.pm
index ee506f1..4431e43 100644
--- a/src/PMG/PBSConfig.pm
+++ b/src/PMG/PBSConfig.pm
@@ -96,6 +96,11 @@ sub properties {
 	    type => 'string',
 	    optional => 1,
 	},
+	port => {
+	    description => "Proxmox Backup Server port.",
+	    optional => 1,
+	    type => 'integer',
+	},
 	username => get_standard_option('pmg-email-address', {
 	    description => "Username or API token ID on the Proxmox Backup Server"
 	}),
@@ -123,6 +128,7 @@ sub options {
 	disable => { optional => 1 },
 	username => { optional => 1 },
 	password => { optional => 1 },
+	port => { optional => 1 },
 	fingerprint => { optional => 1 },
 	notify => { optional => 1 },
 	'include-statistics' => { optional => 1 },
-- 
2.39.2





More information about the pmg-devel mailing list