From ae728b0c588c0d5011c8f023140ffa368e9bdb77 Mon Sep 17 00:00:00 2001 From: WhatTheServer Date: Thu, 24 Dec 2020 19:56:04 -0500 Subject: [PATCH] Update cliParser.py Add argument to pass an optional backupPath to cyberpanel cli createBackup function so you can call the createBackup function and specify to backup to a specific path like another mount or path for scripting backups where you want them vs being hardcoded to /home//backup --- cli/cliParser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/cliParser.py b/cli/cliParser.py index 20dae31b6..00c7cb7d7 100755 --- a/cli/cliParser.py +++ b/cli/cliParser.py @@ -22,6 +22,7 @@ class cliParser: parser.add_argument('--dkim', help='DKIM Signing') parser.add_argument('--openBasedir', help='To enable or disable open_basedir protection for domain.') parser.add_argument('--fileName', help='Complete path to a file that needs to be restored.') + parser.add_argument('--backupPath', help='Backup path to use when generating a backup.') ## Package Arguments. @@ -69,4 +70,4 @@ class cliParser: parser.add_argument('--siteTitle', help='Site Title for application installers.') parser.add_argument('--path', help='Path for application installers.') - return parser.parse_args() \ No newline at end of file + return parser.parse_args()