R3721-F3210-F3171-HP High-End Firewalls System Management and Maintenance Command Reference-6PW101
34
copy
Syntax
copy fileurl-source fileurl-dest
View
User view
Default level
3: Manage level
Parameters
fileurl-source: Name of the source file.
fileurl-dest: Name of the target file or folder.
Description
Use copy to copy a file.
If you specify a target folder, the system will copy the file to the specified folder and use the name of the
source file as the file name.
Examples
# Copy file testcfg.cfg in the current folder and save it as testbackup.cfg.
<Sysname> copy testcfg.cfg testbackup.cfg
Copy flash0:/test.cfg to flash0:/testbackup.cfg?[Y/N]:y
....
%Copy file flash0:/test.cfg to flash0:/testbackup.cfg...Done.
# Copy file 1.cfg in the test folder on the flash to the testbackup folder in the first partition of the CF card,
and save it as 1backup.cfg.
<Sysname> copy flash0:/test/1.cfg cfa0:/testbackup/1backup.cfg
Copy flash0:/test/1.cfg to cfa0:/testbackup/1backup.cfg?[Y/N]:y
%Copy file flash0:/test/1.cfg to cfa0:/testbackup/1backup.cfg...Done.
crypto-digest
Syntax
crypto-digest sha256 file file-url
View
User view
Default level
2: System level
Parameters
sha256: Uses the SHA-256 algorithm.
file-url: Specifies the file name.
Description
Use crypto-digest to calculate the digest of a file.