Skip to content

Instantly share code, notes, and snippets.

@qrush
Last active May 31, 2016 11:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qrush/ecd21adec00aa4dc4c7f316750b54494 to your computer and use it in GitHub Desktop.
Save qrush/ecd21adec00aa4dc4c7f316750b54494 to your computer and use it in GitHub Desktop.
archive pickaxe
for t in `git tag | tac`
do
echo ">>>>>>>>>>"
echo $t
git reset --hard $t
git lfs fetch
git checkout -f $t
git lfs checkout
while [ $? -ne 0 ]; do
git lfs fetch
git checkout -f $t
git lfs checkout
done
tar --use-compress-program=pigz --exclude='./.git' -cvf ../$t.tar.gz .
aws s3 cp ../$t.tar.gz s3://archive.pickaxe.club/ --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers
done
git tag -a week75 -m 'week end' 3201565
git tag -a week74 -m 'week end' 05a78f5
git tag -a week73 -m 'week end' 7abd6b3
git tag -a week72 -m 'week end' effc073
git tag -a week71 -m 'week end' 2d5cb5d
git tag -a week70 -m 'week end' 3022e66
git tag -a week69 -m 'week end' c28836a
git tag -a week68 -m 'week end' e4d8cf9
git tag -a week67 -m 'week end' 51c3c13
git tag -a week66 -m 'week end' e4f22c4
git tag -a week65 -m 'week end' 8fb3446
git tag -a week64 -m 'week end' 0f6bd69
uit tag -a week63 -m 'week end' 7bab10b
git tag -a week62 -m 'week end' 18198d4
git tag -a week61 -m 'week end' 8acaf9a
git tag -a week60 -m 'week end' 830f65e
git tag -a week59 -m 'week end' cbbf37f
git tag -a week58 -m 'week end' c95a184
git tag -a week57 -m 'week end' b6f55e9
git tag -a week56 -m 'week end' 2ccb646
git tag -a week54 -m 'week end' af8c7ed
git tag -a week53 -m 'week end' 231d5f9
git tag -a week52 -m 'week end' d49aed3
git tag -a week51 -m 'week end' 71436e7
git tag -a week50 -m 'week end' 0dd080a
git tag -a week49 -m 'week end' 86c2a00
git tag -a week48 -m 'week end' c767435
git tag -a week47 -m 'week end' 18f45d4
git tag -a week46 -m 'week end' e753ba2
git tag -a week45 -m 'week end' c32ef09
git tag -a week44 -m 'week end' 46219b3
git tag -a week43 -m 'week end' f3bef2d
git tag -a week42 -m 'week end' 1f76c6b
git tag -a week41 -m 'week end' 0da3742
git tag -a week40 -m 'week end' 99f136e
git tag -a week39 -m 'week end' 427edaa
git tag -a week38 -m 'week end' 72b5dfd
git tag -a week37 -m 'week end' ed8d52b
git tag -a week36 -m 'week end' 3ce1b8e
git tag -a week35 -m 'week end' 8f9388f
git tag -a week34 -m 'week end' edaee1c
git tag -a week33 -m 'week end' e246be0
git tag -a week32 -m 'week end' e9a0adf
git tag -a week31 -m 'week end' 5d2ff89
git tag -a week30 -m 'week end' 20cf13f
git tag -a week29 -m 'week end' e2d2323
git tag -a week28 -m 'week end' 0e9fa39
git tag -a week27 -m 'week end' 50857fa
git tag -a week26 -m 'week end' ae12a83
git tag -a week25 -m 'week end' 127e033
git tag -a week24 -m 'week end' 8498bc2
git tag -a week23 -m 'week end' 363a05c
git tag -a week22 -m 'week end' c3dea2f
git tag -a week21 -m 'week end' a03becc
git tag -a week20 -m 'week end' 60d8e5b
git tag -a week19 -m 'week end' 6d524dc
git tag -a week18 -m 'week end' 03d6143
git tag -a week17 -m 'week end' 6d8fb37
git tag -a week16 -m 'week end' f4a6989
git tag -a week15 -m 'week end' 89e9f62
git tag -a week14 -m 'week end' a3d6bf3
git tag -a week13 -m 'week end' d8a7976
git tag -a week12 -m 'week end' 7d5dd21
git tag -a week11 -m 'week end' 68cf521
git tag -a week10 -m 'week end' 0e3f5b5
git tag -a week09 -m 'week end' 53ff41d
git tag -a week08 -m 'week end' c32c5e1
git tag -a week07 -m 'week end' db7c7f7
git tag -a week06 -m 'week end' bd93135
git tag -a week05 -m 'week end' e9808a0
git tag -a week04 -m 'week end' 632202a
git tag -a week03 -m 'week end' ec859b7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment