137
Copying file tftp://1.1.1.1/test.cfg to flash:/testbackup.cfg... Done.
# Copy test.cfg from the current directory. Save the copy to the working directory on TFTP server
1.1.1.1 as testbackup.cfg.
<Sysname> copy test.cfg tftp://1.1.1.1/testbackup.cfg
Copy flash:/test.cfg to tftp://1.1.1.1/testbackup.cfg? [Y/N]:y
Copying file flash:/test.cfg to tftp://1.1.1.1/testbackup.cfg... Done.
# Copy test.cfg from the working directory on FTP server 2001::1. Save the copy to the local current
directory as testbackup.cfg. The FTP username is user. The password is private.
<Sysname> copy ftp://user:private@[2001::1]/test.cfg testbackup.cfg
Copy ftp://user:private@[2001::1]/test.cfg to flash:/testbackup.cfg? [Y/N]:y
Copying file ftp://user:private@[2001::1]/test.cfg to flash:/testbackup.cfg... Done.
# Copy test.cfg from the working directory on TFTP server 2001::1. Save the copy to the local
current directory as testbackup.cfg.
<Sysname> copy tftp://[2001::1]/test.cfg testbackup.cfg
Copy tftp://[2001::1]/test.cfg to flash:/testbackup.cfg? [Y/N]:y
Copying file tftp://[2001::1]/test.cfg to flash:/testbackup.cfg... Done.
# Copy test.cfg from the authorized directory on HTTP server 1.1.1.1. Save the copy to the local
current directory as testbackup.cfg. The HTTP login username is user. The password is private.
<Sysname> copy http://user:private@1.1.1.1/test.cfg testbackup.cfg
Copy http://user:private@1.1.1.1/test.cfg to flash:/testbackup.cfg? [Y/N]:y
Copying file http://user:private@1.1.1.1/test.cfg to flash:/testbackup.cfg... Done.
# Copy test.cfg from the current directory. Save the copy to the authorized directory on HTTP server
1.1.1.1 as testbackup.cfg. The HTTP login username is user. The password is private.
<Sysname> copy test.cfg http://user:private@1.1.1.1/testbackup.cfg
Copy flash:/test.cfg to http://user:private@1.1.1.1/testbackup.cfg? [Y/N]:y
Copying file flash:/test.cfg to http://user:private@1.1.1.1/testbackup.cfg... Done.
# Copy test.cfg from the authorized directory on HTTP server 2001::1. Save the copy to the local
current directory as testbackup.cfg. The HTTP login username is user. The password is private.
<Sysname> copy http://user:private@[2001::1]/test.cfg testbackup.cfg
Copy http://user:private@[2001::1]/test.cfg to flash:/testbackup.cfg? [Y/N]:y
Copying file http://user:private@[2001::1]/test.cfg to flash:/testbackup.cfg... Done.
delete
Use delete to delete a file.
Syntax
delete [ /unreserved ] file
Views
User view
Predefined user roles
network-admin
Parameters
/unreserved: Permanently deletes the specified file. If you do not specify this keyword, the
command moves the file to the recycle bin.
file: Specifies the name of the file to be deleted. Asterisks (*) are acceptable as wildcards. For
example, to remove files with the .txt extension in the current directory, enter delete *.txt.