==========
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
FILE
fromremote-user@remote-ip:remote-dir
. - Load
FILE
into theproject
swift container in 1GB chunks. - Deletes
FILE
from staging area.
Requirements:
- Necessary SSH keys are loaded into the users' agent
- sourced
.novarc
http_proxy
andhttps_proxy
environment variables are unset
TODO: Error checking, exception handling