Dec 11, 2020. We are trying to use
git annex to store large
files in a Google Cloud Storage bucket.
Let's set up
rclone so that it's linked to our Google Cloud
You will be prompted in your browser to allow
to your Google Cloud account.
Once you complete these steps, you will be able to see the contents of your cloud storage bucket:
$ rclone lsd my-remote: -1 2020-12-11 16:00:02 -1 some-project-name
Now let's set up
git-annex so that it can use the newly-defined
You need the bash script from git-annex-remote-rclone to tie everything together:
curl https://raw.githubusercontent.com/DanielDent/git-annex-remote-rclone/master/git-annex-remote-rclone --output ~/bin/git-annex-remote-rclone chmod 755 ~/bin/git-annex-remote-rclone
git-annex with a 5MB chunk size:
BUCKET=some-bucket-name RCLONE_REMOTE=my-remote git annex initremote gcs-ruins type=external externaltype=rclone target=$RCLONE_REMOTE prefix=$BUCKET chunk=5MiB encryption=shared mac=HMACSHA512 rclone_layout=lower
Finally, we symlinked
~/.config/rclone/rclone.conf so that
rclone would pick up the config on our Debian-derived system.