ucscsdk/utils/ucscbackup.py
def schedule_export_config(handle, descr="Configuration Export "
                           "Policy", sched_name="global-default",
                           max_bkup_files="2",
                           remote_enabled=False, protocol=None,
                           hostname="", file_path="",
                           username=None, password=""):
    """
    schedule_export_config helps schedule and optionally take remote backup of
    UcsCentral's config-all backup.

    Args:
        handle (UcscHandle): UcsCentral Connection handle
        descr (str): Description of the policy
        sched_name (str): Name of the schedule
        max_bkup_files (str): Number of files to keep as backup
        remote_enabled (boolean): True if Remote backup is enabled
                                  False - by default
        protocol (str): Transfer protocol for remote backup
                        ['ftp','sftp','tftp','scp']
        hostname (str): Hostname/IP for the remote backup
        file_path (str): Absolute file path on remote host
        username (str): Username for remote backup
        password (str): Password for remote backup

    Example:
        file_path = "/ws/usr-admin/config.tgz"\n
        schedule_export_config(handle, max_bkup_files=3)

        schedule_export_config(handle, file_path=file_path,
                               remote_enabled=True,
                               protocol='scp',hostname='192.16.1.1',
                               username='admin',password='pass')\n

    """

    return _schedule_export_config(
           handle, descr=descr, sched_name=sched_name,
           max_bkup_files=max_bkup_files,
           remote_enabled=remote_enabled, protocol=protocol,
           hostname=hostname, file_path=file_path,
           username=username, password=password,
           parent_mo_or_dn=ucsc_base_dn)

    schedule_export_config helps schedule and optionally take remote backup of
    UcsCentral's config-all backup.

    Args:
        handle (UcscHandle): UcsCentral Connection handle
        descr (str): Description of the policy
        sched_name (str): Name of the schedule
        max_bkup_files (str): Number of files to keep as backup
        remote_enabled (boolean): True if Remote backup is enabled
                                  False - by default
        protocol (str): Transfer protocol for remote backup
                        ['ftp','sftp','tftp','scp']
        hostname (str): Hostname/IP for the remote backup
        file_path (str): Absolute file path on remote host
        username (str): Username for remote backup
        password (str): Password for remote backup

    Example:
        file_path = "/ws/usr-admin/config.tgz"\n
        schedule_export_config(handle, max_bkup_files=3)

        schedule_export_config(handle, file_path=file_path,
                               remote_enabled=True,
                               protocol='scp',hostname='192.16.1.1',
                               username='admin',password='pass')\n

    
schedule_export_config helps schedule and optionally take remote backup of
UcsCentral's config-all backup.
schedule_export_config helps schedule and optionally take remote backup of UcsCentral ' s config - all backup .
def schedule_export_config(handle, descr="Configuration Export "
                           "Policy", sched_name="global-default",
                           max_bkup_files="2",
                           remote_enabled=False, protocol=None,
                           hostname="", file_path="",
                           username=None, password=""):
    return _schedule_export_config(
           handle, descr=descr, sched_name=sched_name,
           max_bkup_files=max_bkup_files,
           remote_enabled=remote_enabled, protocol=protocol,
           hostname=hostname, file_path=file_path,
           username=username, password=password,
           parent_mo_or_dn=ucsc_base_dn)
def schedule_export_config ( handle , descr = "Configuration Export " "Policy" , sched_name = "global-default" , max_bkup_files = "2" , remote_enabled = False , protocol = None , hostname = "" , file_path = "" , username = None , password = "" ) : return _schedule_export_config ( handle , descr = descr , sched_name = sched_name , max_bkup_files = max_bkup_files , remote_enabled = remote_enabled , protocol = protocol , hostname = hostname , file_path = file_path , username = username , password = password , parent_mo_or_dn = ucsc_base_dn )
schedule_export_config helps schedule and optionally take remote backup of
UcsCentral's config-all backup.
schedule_export_config helps schedule and optionally take remote backup of UcsCentral ' s config - all backup .
"""
    schedule_export_config helps schedule and optionally take remote backup of
    UcsCentral's config-all backup.

    Args:
        handle (UcscHandle): UcsCentral Connection handle
        descr (str): Description of the policy
        sched_name (str): Name of the schedule
        max_bkup_files (str): Number of files to keep as backup
        remote_enabled (boolean): True if Remote backup is enabled
                                  False - by default
        protocol (str): Transfer protocol for remote backup
                        ['ftp','sftp','tftp','scp']
        hostname (str): Hostname/IP for the remote backup
        file_path (str): Absolute file path on remote host
        username (str): Username for remote backup
        password (str): Password for remote backup

    Example:
        file_path = "/ws/usr-admin/config.tgz"\n
        schedule_export_config(handle, max_bkup_files=3)

        schedule_export_config(handle, file_path=file_path,
                               remote_enabled=True,
                               protocol='scp',hostname='192.16.1.1',
                               username='admin',password='pass')\n

    """
handle
UcsCentral Connection handle
UcsCentral Connection handle
descr
Description of the policy
Description of the policy
sched_name
Name of the schedule
Name of the schedule
max_bkup_files
Number of files to keep as backup
Number of files to keep as backup
remote_enabled
True if Remote backup is enabled
False - by default
True if Remote backup is enabled False - by default
protocol
Transfer protocol for remote backup
['ftp','sftp','tftp','scp']
Transfer protocol for remote backup [ ' ftp ' ' sftp ' ' tftp ' ' scp ' ]
hostname
Hostname/IP for the remote backup
Hostname / IP for the remote backup
file_path
Absolute file path on remote host
Absolute file path on remote host
username
Username for remote backup
Username for remote backup
password
Password for remote backup
Password for remote backup
examples
file_path = "/ws/usr-admin/config.tgz"\n
schedule_export_config(handle, max_bkup_files=3)

schedule_export_config(handle, file_path=file_path,
remote_enabled=True,
protocol='scp',hostname='192.16.1.1',
username='admin',password='pass')\n
file_path = " / ws / usr - admin / config . tgz " \ n schedule_export_config ( handle max_bkup_files = 3 ) schedule_export_config ( handle file_path = file_path remote_enabled = True protocol = ' scp ' hostname = ' 192 . 16 . 1 . 1 ' username = ' admin ' password = ' pass ' ) \ n