mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-08 06:16:08 +01:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user