==========
Stage files from remote server into cinder block before uploading into swift
Requires a config.json:
{
"remote-ip" : "192.170.228.3",
"remote-user" : "JGRUNDSTAD",
"remote-dir" : "/glusterfs/netapp/homes1/whitelab-pancreatic/sequences/PANCAN",
"project" : "PANCAN",
"subdirectory" : "RAW"
}Usage:
cat filename_list.txt | \
xargs -P <threads> -n 1 -IFILE python swift_loader.py -j config.json -f FILE- Downloads
FILEfromremote-user@remote-ip:remote-dir. - Load
FILEinto theprojectswift container in 1GB chunks. - Deletes
FILEfrom staging area.
Requirements:
- Necessary SSH keys are loaded into the users' agent
- sourced
.novarc http_proxyandhttps_proxyenvironment variables are unset
TODO: Error checking, exception handling