# Copying Files To Device

To copy files to 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>copy { running-config | startup-config } scp &#x3C;server_url> [timeout &#x3C;interval> ]</td><td></td></tr><tr><td>Description</td><td>Copies the switch running configuration to remote scp server</td><td></td></tr><tr><td>Parameters</td><td><p><strong>running-config</strong> Copies to the running configuration </p><p><strong>Server_url</strong> username@ipaddress:filepathandname <strong>timeout</strong> </p><p>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.</p></td><td></td></tr><tr><td>Mode</td><td>EXEC</td><td></td></tr></tbody></table>

#### CLI Example

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

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

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

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