title | date | draft | project | section | weight | icon |
---|---|---|---|---|---|---|
Filetransfer |
2019-01-31T22:06:52.000Z |
false |
Oscar |
Managing files |
0 |
check |
You may use either Globus (recommended) or smbclient to transfer data between Oscar and Campus File Storage.
Follow the instructions here for transferring data between files.brown.edu and Oscar.
You can transfer files between Campus File Storage and Oscar using smbclient.
1) Log into Oscar:
ssh ssh.ccv.brown.edu
2) Start a screen session. This will allow you to reattach to your terminal window if you disconnect.
screen
3) To use Oscar's high-speed connection to Campus File Storage - Replicated:
smbclient "//smb.isi.ccv.brown.edu/SHARE_NAME" -D DIRECTORY_NAME -U "ad\BROWN_ID" -m SMB3
Similarly to access Campus File Storage - Non-Replicated ( LRS: Locally Redundant Share)
smbclient "//smblrs.ccv.brown.edu/Research" -D DIRECTORY_NAME -U "ad\BROWN_ID" -m SMB3
Replace SHARE_NAME, DIRECTORY_NAME, and BROWN_ID. DIRECTORY_NAME is an optional parameter. The password required is your Brown password.
4) Upload/download your data using the FTP "put"/"get" commands. Replace DIRECTORY_NAME with the folder you'd like to upload.
put DIRECTORY_NAME
5) You can detach from the screen session with a "CTRL+A D" keypress. To reattach to your session:
screen -r
put
is upload to Campus File Storage
Usage: put <local_file> [remote file name]
Copy <local_file>
from Oscar to Campus File Storage. The remote file name is optional (use if you want to rename the file)
get
is download to Oscar
Usage: get <remote_file> [local file name]
Copy <remote_file>
from the Campus File Storage to Oscar. The local file name is optional (use if you want to rename the file)
To move more than one file at once use mput
or mget
. By default:
recurse
is OFF. smbclient will not recurse into any subdirectories when copying files
prompt
is ON. smbclient will ask for confirmation for each file in the subdirectories
You can toggle recursion ON/OFF with:
recurse
You can toggle prompt OFF/ON with:
prompt