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/<domain name>/backup
This commit is contained in:
WhatTheServer
2020-12-24 19:56:04 -05:00
committed by GitHub
parent 74f818769b
commit ae728b0c58

View File

@@ -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()
return parser.parse_args()