# Copying Files From Device

To copy files from the remote server, use the following command:

#### Reference

<table data-header-hidden><thead><tr><th></th><th></th><th data-hidden></th></tr></thead><tbody><tr><td>Command</td><td><p>copy scp &#x3C;server_url> [timeout &#x3C;interval> ] { running-config [replace] | startup-config |</p><p>sonic-image }</p></td><td></td></tr><tr><td>Description</td><td>Copies new file ISCLI config file from remote SCP server and install to the switch.</td><td></td></tr><tr><td>Parameters</td><td><p><strong>Server_url</strong> username@ipaddress:filepathandname</p><p><strong>timeout</strong> timeout </p><p><strong>interval</strong> Specifies the maximum time (in seconds) to wait for the server to reply to the connection request. The timeout interval is from 1 to 100 seconds<br><strong>running-config</strong> Copies to the running configuration <br><strong>startup-config</strong> Copies to the startup configuration </p><p><strong>sonic-image</strong> SONIC image replace Removes the existing running configuration and replaces it with the new file(full update</p></td><td></td></tr><tr><td>Mode</td><td>EXEC</td><td></td></tr></tbody></table>

#### CLI Example

```
//copying running-config from remote server
pbnoscli# copy scp <user>@<IP>:/<file.cfg> running-config

//Example - copy scp aviz@10.2.2.10:/rsw.cfg running-config
```

```
//copying startup-config from remote server
pbnoscli# copy scp <user>@<IP>:/<file.cfg> startup-config

//Example - copy scp aviz@10.2.2.10:/ssw.cfg startup-config
```

```
//copying OPBNOS from a remove server
pbnoscli# copy scp <user>@<IP>:/<opbnos.bin> opbnos-image

//Example - copy scp aviz@10.2.2.10:/OPBNOS.bin opbnos-image
```
