ucscsdk/utils/ucscbackup.py
def export_config_domain_remote(handle, file_dir, file_name,
                                domain_ip, hostname,  protocol,
                                username=None, password="",
                                domain_name=None, preserve_pooled_values=False,
                                timeout=600):
    """
    export_config_domain_remote helps create domain export config and download
    it to remote location.
    Note: Domain export export config will always be remote export

    Args:
        handle (UcscHandle): UcsCentral Connection handle
        file_dir (str): directory to download ucs backup file to
        file_name (str): name for the backup file
                         (supported file extension is '.xml')
        timeout (number) : time in seconds for which method waits
                           for the backUp file to generate before it exits.
        domain_ip(str): IP of domain, set 'None' if domain_name is valid
        domain_name(str): Domain name, valid only if domain_ip is None
        protocol (str): Transfer protocol for remote backup
                        ['ftp','sftp','tftp','scp']
        hostname (str): Hostname/IP for the remote backup
        username (str): Username for remote backup
        password (str): Password for remote backup
        preserve_pooled_values (boolean): True/False,
                                          False - by default

    Example:
        file_dir = "/home/user/backup"\n
        file_name = "config_backup.xml"\n
        export_config_domain(handle, file_dir=test_support,
                    file_name=file_name,
                    username='admin', password='password',
                    domain_ip='10.10.10.1', protocol='scp',
                    hostname='192.168.1.1')
    """
    backup_type = "config-all"
    return _backup_or_exportconfig_domain(handle, backup_type, file_dir,
                                          file_name, domain_ip, domain_name,
                                          hostname, preserve_pooled_values,
                                          protocol, username, password,
                                          timeout)

    export_config_domain_remote helps create domain export config and download
    it to remote location.
    Note: Domain export export config will always be remote export

    Args:
        handle (UcscHandle): UcsCentral Connection handle
        file_dir (str): directory to download ucs backup file to
        file_name (str): name for the backup file
                         (supported file extension is '.xml')
        timeout (number) : time in seconds for which method waits
                           for the backUp file to generate before it exits.
        domain_ip(str): IP of domain, set 'None' if domain_name is valid
        domain_name(str): Domain name, valid only if domain_ip is None
        protocol (str): Transfer protocol for remote backup
                        ['ftp','sftp','tftp','scp']
        hostname (str): Hostname/IP for the remote backup
        username (str): Username for remote backup
        password (str): Password for remote backup
        preserve_pooled_values (boolean): True/False,
                                          False - by default

    Example:
        file_dir = "/home/user/backup"\n
        file_name = "config_backup.xml"\n
        export_config_domain(handle, file_dir=test_support,
                    file_name=file_name,
                    username='admin', password='password',
                    domain_ip='10.10.10.1', protocol='scp',
                    hostname='192.168.1.1')
    
export_config_domain_remote helps create domain export config and download
it to remote location.
Note: Domain export export config will always be remote export
export_config_domain_remote helps create domain export config and download it to remote location . Note : Domain export export config will always be remote export
def export_config_domain_remote(handle, file_dir, file_name,
                                domain_ip, hostname,  protocol,
                                username=None, password="",
                                domain_name=None, preserve_pooled_values=False,
                                timeout=600):
    backup_type = "config-all"
    return _backup_or_exportconfig_domain(handle, backup_type, file_dir,
                                          file_name, domain_ip, domain_name,
                                          hostname, preserve_pooled_values,
                                          protocol, username, password,
                                          timeout)
def export_config_domain_remote ( handle , file_dir , file_name , domain_ip , hostname , protocol , username = None , password = "" , domain_name = None , preserve_pooled_values = False , timeout = 600 ) : backup_type = "config-all" return _backup_or_exportconfig_domain ( handle , backup_type , file_dir , file_name , domain_ip , domain_name , hostname , preserve_pooled_values , protocol , username , password , timeout )
export_config_domain_remote helps create domain export config and download
it to remote location.
export_config_domain_remote helps create domain export config and download it to remote location .
"""
    export_config_domain_remote helps create domain export config and download
    it to remote location.
    Note: Domain export export config will always be remote export

    Args:
        handle (UcscHandle): UcsCentral Connection handle
        file_dir (str): directory to download ucs backup file to
        file_name (str): name for the backup file
                         (supported file extension is '.xml')
        timeout (number) : time in seconds for which method waits
                           for the backUp file to generate before it exits.
        domain_ip(str): IP of domain, set 'None' if domain_name is valid
        domain_name(str): Domain name, valid only if domain_ip is None
        protocol (str): Transfer protocol for remote backup
                        ['ftp','sftp','tftp','scp']
        hostname (str): Hostname/IP for the remote backup
        username (str): Username for remote backup
        password (str): Password for remote backup
        preserve_pooled_values (boolean): True/False,
                                          False - by default

    Example:
        file_dir = "/home/user/backup"\n
        file_name = "config_backup.xml"\n
        export_config_domain(handle, file_dir=test_support,
                    file_name=file_name,
                    username='admin', password='password',
                    domain_ip='10.10.10.1', protocol='scp',
                    hostname='192.168.1.1')
    """
handle
UcsCentral Connection handle
UcsCentral Connection handle
file_dir
directory to download ucs backup file to
directory to download ucs backup file to
file_name
name for the backup file
(supported file extension is '.xml')
name for the backup file ( supported file extension is ' . xml ' )
domain_ip
IP of domain, set 'None' if domain_name is valid
IP of domain set ' None ' if domain_name is valid
hostname
Hostname/IP for the remote backup
Hostname / IP for the remote backup
protocol
Transfer protocol for remote backup
['ftp','sftp','tftp','scp']
Transfer protocol for remote backup [ ' ftp ' ' sftp ' ' tftp ' ' scp ' ]
username
Username for remote backup
Username for remote backup
password
Password for remote backup
Password for remote backup
domain_name
Domain name, valid only if domain_ip is None
Domain name valid only if domain_ip is None
preserve_pooled_values
True/False,
False - by default
True / False False - by default
timeout
time in seconds for which method waits
for the backUp file to generate before it exits.
time in seconds for which method waits for the backUp file to generate before it exits .
examples
file_dir = "/home/user/backup"\n
file_name = "config_backup.xml"\n
export_config_domain(handle, file_dir=test_support,
file_name=file_name,
username='admin', password='password',
domain_ip='10.10.10.1', protocol='scp',
hostname='192.168.1.1')
file_dir = " / home / user / backup " \ n file_name = " config_backup . xml " \ n export_config_domain ( handle file_dir = test_support file_name = file_name username = ' admin ' password = ' password ' domain_ip = ' 10 . 10 . 10 . 1 ' protocol = ' scp ' hostname = ' 192 . 168 . 1 . 1 ' )