shntnu
1/6/2017 - 9:21 PM

Get the pwd of the same directory on S3 (when in an NFS dir)

Get the pwd of the same directory on S3 (when in an NFS dir)

alias gets3dir="pwd|sed 's,/imaging/analysis,s3://imaging-platform/projects,g'"

# use it like this to sync

aws s3 sync . `gets3dir`
alias gets3dir='pwd|sed "s,/home/ubuntu/efs,s3://imaging-platform/projects,g"'

# use it like this to sync

aws s3 sync . `gets3dir`
alias gets3dir="pwd|sed 's,${HOME}/work,s3://imaging-platform,g'"

# use it like this to sync

aws s3 sync . `gets3dir`