To know the details about 'scp', type man scp in the terminal.
To copy files from the cluster to local system
scp -P 4200 userName@cluster.domain:/home/path/to/the/file/ .
(notice that the 'dot' at the end is for copying files to the current folder)
Similarly, to copy the files from current folder to the cluster
scp ./fileName -P 4200 userName@cluster.domain:/home/path/to/directory
To copy a directory and its files and subdirectories to to the cluster
scp -r ./Dir1 -P 4200 userName@cluster.domain:/home/path/to/directory
Copy a directory recursively from cluster to your local system
scp -P -r 4200 userName@cluster.domain:/home/Dir1 .
To copy files from the cluster to local system
scp -P 4200 userName@cluster.domain:/home/path/to/the/file/ .
(notice that the 'dot' at the end is for copying files to the current folder)
Similarly, to copy the files from current folder to the cluster
scp ./fileName -P 4200 userName@cluster.domain:/home/path/to/directory
To copy a directory and its files and subdirectories to to the cluster
scp -r ./Dir1 -P 4200 userName@cluster.domain:/home/path/to/directory
scp -P -r 4200 userName@cluster.domain:/home/Dir1 .
No comments:
Post a Comment