Setup New repo
init git:
init git annex:
Add S3 Remote named public-s3
git annex initremote public-s3 type=S3 encryption=none bucket=tyler.zone chunk=0
Add file to git annex
copy current directory to public-s3 remote
git annex copy --to public-s3
remove local copy—will only remove if already in remote—nothing
lost
Commit
git -a -m 'initial commit'
Setup NFS as remote using Rsync over ssh
Add Rsync
as unencrypted remote
git annex initremote nas type=rsync rsyncurl=nfs.blazeyandltyler.com:/volume1/homes/tyler/PicturesAnnex encryption=none
Add file to nas
Pull down photos
eval (~/.amazonrc)
git annex enableremote public-s3
git annex get [whatever]
Make available to the public (after public s3 setup):
git annex addurl --file [filename] "http://tyler.zone/$(git annex lookupkey [filename])"
List remotes and remote info
Show remote info
git annex info [remote-name]
git annex info tylercipriani-raw
Finding info about files
Find a file:
git annex whereis [filename]
Adding a file to http://tyler.zone
eval $(~/.amazonrc)
git annex copy --to=photo-site [file]
git annex addurl --file [file] "http://tyler.zone/$(git annex lookupkey [filename])"
Sharing via Amazon s3
Setup
Make amazon bucket with policy:
{
"Version": "2008-10-17",
"Statement": [
{
"Sid": "AllowPublicRead",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::[bucket-name]/*"
}
]
}
Put creds out into the environment
eval (~/.amazonrc)
cd into repo:
cd /home/tyler/Projects/Timelapse