ucscsdk/utils/ucscbackup.py
def export_config_remote(handle, file_dir, file_name, hostname,
                         protocol="scp", username=None, password="",
                         preserve_pooled_values=False,
                         remove_from_ucsc=False,
                         timeout=600):
    """
    export_config_remote helps export UcsCentral config-all backup and
    download it to remote location.

    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 '.tgz')
        hostname (str): Hostname/IP for the remote backup
        protocol (str): Transfer protocol for remote backup
                        ['ftp','sftp','tftp','scp']
        username (str): Username for remote backup
        password (str): Password for remote backup
        preserve_pooled_values (boolean): True/False, False - by default
        remove_from_ucsc (boolean): True/False, False - by default
        timeout (number) : time in seconds for which method waits
                           for the backUp file to generate before it exits.

    Example:
        file_dir = "/home/user/backup"\n
        file_name = "export_config.tgz"\n

        export_config_remote(handle, file_dir=file_dir,
                    file_name=file_name,
                    protocol='scp',hostname='192.168.1.1',
                    username='admin',password='password')\n

    """
    _export_config(handle, file_dir=file_dir, file_name=file_name,
                   remote_enabled=True,
                   hostname=hostname, protocol=protocol,
                   username=username, password=password,
                   preserve_pooled_values=preserve_pooled_values,
                   remove_from_ucsc=remove_from_ucsc,
                   timeout=timeout)

    export_config_remote helps export UcsCentral config-all backup and
    download it to remote location.

    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 '.tgz')
        hostname (str): Hostname/IP for the remote backup
        protocol (str): Transfer protocol for remote backup
                        ['ftp','sftp','tftp','scp']
        username (str): Username for remote backup
        password (str): Password for remote backup
        preserve_pooled_values (boolean): True/False, False - by default
        remove_from_ucsc (boolean): True/False, False - by default
        timeout (number) : time in seconds for which method waits
                           for the backUp file to generate before it exits.

    Example:
        file_dir = "/home/user/backup"\n
        file_name = "export_config.tgz"\n

        export_config_remote(handle, file_dir=file_dir,
                    file_name=file_name,
                    protocol='scp',hostname='192.168.1.1',
                    username='admin',password='password')\n

    
export_config_remote helps export UcsCentral config-all backup and
download it to remote location.
export_config_remote helps export UcsCentral config - all backup and download it to remote location .
def export_config_remote(handle, file_dir, file_name, hostname,
                         protocol="scp", username=None, password="",
                         preserve_pooled_values=False,
                         remove_from_ucsc=False,
                         timeout=600):
    _export_config(handle, file_dir=file_dir, file_name=file_name,
                   remote_enabled=True,
                   hostname=hostname, protocol=protocol,
                   username=username, password=password,
                   preserve_pooled_values=preserve_pooled_values,
                   remove_from_ucsc=remove_from_ucsc,
                   timeout=timeout)
def export_config_remote ( handle , file_dir , file_name , hostname , protocol = "scp" , username = None , password = "" , preserve_pooled_values = False , remove_from_ucsc = False , timeout = 600 ) : _export_config ( handle , file_dir = file_dir , file_name = file_name , remote_enabled = True , hostname = hostname , protocol = protocol , username = username , password = password , preserve_pooled_values = preserve_pooled_values , remove_from_ucsc = remove_from_ucsc , timeout = timeout )
export_config_remote helps export UcsCentral config-all backup and
download it to remote location.
export_config_remote helps export UcsCentral config - all backup and download it to remote location .
"""
    export_config_remote helps export UcsCentral config-all backup and
    download it to remote location.

    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 '.tgz')
        hostname (str): Hostname/IP for the remote backup
        protocol (str): Transfer protocol for remote backup
                        ['ftp','sftp','tftp','scp']
        username (str): Username for remote backup
        password (str): Password for remote backup
        preserve_pooled_values (boolean): True/False, False - by default
        remove_from_ucsc (boolean): True/False, False - by default
        timeout (number) : time in seconds for which method waits
                           for the backUp file to generate before it exits.

    Example:
        file_dir = "/home/user/backup"\n
        file_name = "export_config.tgz"\n

        export_config_remote(handle, file_dir=file_dir,
                    file_name=file_name,
                    protocol='scp',hostname='192.168.1.1',
                    username='admin',password='password')\n

    """
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 '.tgz')
name for the backup file ( supported file extension ' . tgz ' )
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
preserve_pooled_values
True/False, False - by default
True / False False - by default
remove_from_ucsc
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 = "export_config.tgz"\n

export_config_remote(handle, file_dir=file_dir,
file_name=file_name,
protocol='scp',hostname='192.168.1.1',
username='admin',password='password')\n
file_dir = " / home / user / backup " \ n file_name = " export_config . tgz " \ n export_config_remote ( handle file_dir = file_dir file_name = file_name protocol = ' scp ' hostname = ' 192 . 168 . 1 . 1 ' username = ' admin ' password = ' password ' ) \ n