ucscsdk/utils/ucscbackup.py
def schedule_backup_domain(handle, descr="Database Backup Policy",
                           sched_name="global-default", max_bkup_files="2",
                           remote_enabled=False, protocol=None,
                           hostname=None, file_path=None,
                           username=None, password="",
                           domain_group="root"):
    """
    schedule_backup_domain helps schedule and optionally take remote backup of
    domain's full-state 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
        domain_group (str): Fully qualified domain group name

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

        schedule_backup_domain(handle, file_path=file_path,
                               remote_enabled=True,
                               protocol='scp',hostname='192.168.1.1',
                               username='admin',password='password',
                               domain_group="root/demo_domgrp")\n

    """

    from ucscsdk.utils.ucscdomain import get_domain_group_dn
    domain_group_dn = get_domain_group_dn(handle, domain_group)

    return _schedule_backup(
           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=domain_group_dn)

    schedule_backup_domain helps schedule and optionally take remote backup of
    domain's full-state 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
        domain_group (str): Fully qualified domain group name

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

        schedule_backup_domain(handle, file_path=file_path,
                               remote_enabled=True,
                               protocol='scp',hostname='192.168.1.1',
                               username='admin',password='password',
                               domain_group="root/demo_domgrp")\n

    
schedule_backup_domain helps schedule and optionally take remote backup of
domain's full-state backup.
schedule_backup_domain helps schedule and optionally take remote backup of domain ' s full - state backup .
def schedule_backup_domain(handle, descr="Database Backup Policy",
                           sched_name="global-default", max_bkup_files="2",
                           remote_enabled=False, protocol=None,
                           hostname=None, file_path=None,
                           username=None, password="",
                           domain_group="root"):
    from ucscsdk.utils.ucscdomain import get_domain_group_dn
    domain_group_dn = get_domain_group_dn(handle, domain_group)
    return _schedule_backup(
           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=domain_group_dn)
def schedule_backup_domain ( handle , descr = "Database Backup Policy" , sched_name = "global-default" , max_bkup_files = "2" , remote_enabled = False , protocol = None , hostname = None , file_path = None , username = None , password = "" , domain_group = "root" ) : from ucscsdk . utils . ucscdomain import get_domain_group_dn domain_group_dn = get_domain_group_dn ( handle , domain_group ) return _schedule_backup ( 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 = domain_group_dn )
schedule_backup_domain helps schedule and optionally take remote backup of
domain's full-state backup.
schedule_backup_domain helps schedule and optionally take remote backup of domain ' s full - state backup .
"""
    schedule_backup_domain helps schedule and optionally take remote backup of
    domain's full-state 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
        domain_group (str): Fully qualified domain group name

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

        schedule_backup_domain(handle, file_path=file_path,
                               remote_enabled=True,
                               protocol='scp',hostname='192.168.1.1',
                               username='admin',password='password',
                               domain_group="root/demo_domgrp")\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
domain_group
Fully qualified domain group name
Fully qualified domain group name
examples
file_path = "/ws/usr-admin/backup.tgz"\n
schedule_backup_domain(handle, max_bkup_files=3)

schedule_backup_domain(handle, file_path=file_path,
remote_enabled=True,
protocol='scp',hostname='192.168.1.1',
username='admin',password='password',
domain_group="root/demo_domgrp")\n
file_path = " / ws / usr - admin / backup . tgz " \ n schedule_backup_domain ( handle max_bkup_files = 3 ) schedule_backup_domain ( handle file_path = file_path remote_enabled = True protocol = ' scp ' hostname = ' 192 . 168 . 1 . 1 ' username = ' admin ' password = ' password ' domain_group = " root / demo_domgrp " ) \ n