...
The following table shows some SCP syntax examples
Task | Command |
---|---|
Copy single file to another system | $ scp <local-file> <user>@<remote-host>:<remote-file-path> |
Copy a directory recursively to another system | $ scp -r <local-path> <user>@<remote-host>:<remote-path> |
Copy a single file from another system | $ scp <user>@<remote-host>:<remote-file-path> <local-file> |
Copy a directory recursively from another system | $ scp -r <user>@<remote-host>:<remote-path> <local-path> |
...
- cpio
- tar
- dump/restore for HFS filesystems
- vxdump/vxrestore for VxFS filesystems
- fbackup/frecover for selective file backup and restore
- make_net_recovery / make_tape_recovery when working with Ignite
- pax to create and restore archive files of different formats; there is also an pax_enh package to support file sizes larger than 8GB in version 11.23 (default in HP-UX 11.31).
The Please note:
- The cpio and the standard tar command on HP-UX have restrictions with respect to the largest file size they can handle: the maximum file size for cpio is 2GB, the maximum for tar is 8GB.
...
...
- The utilities tar, cpio, and pax can be used to transfer archives between HP-UX and other operating systems.
When creating an archive using one of the above commands, you can copy the archive to the target HP-UX system and restore it there. Alternatively, you can pipe the archive command on the source system through ssh to the respective restore command on the target.
...
On the source system:
|
Take Please note: Take care not to overwrite any files on the target system! Please read the respective man-pages carefully to learn about additional parameters of the commands and their proper use.
...