Skip to content

Instantly share code, notes, and snippets.

@tylerhall
Created March 5, 2020 22:54
Show Gist options
  • Save tylerhall/3715ef71eeaa159e7df4c02cfd06183a to your computer and use it in GitHub Desktop.
Save tylerhall/3715ef71eeaa159e7df4c02cfd06183a to your computer and use it in GitHub Desktop.
# Install B2 command line tool
sudo apt-get update
sudo apt install -y python
sudo apt install -y python-setuptools python-dev build-essential
sudo apt install -y python-pip
pip install —upgrade b2
b2 authorize-account key secret
# curl command copied from Charles Proxy to download Google Photos Takeout archive
curl -o photos.tgz
tar -xzvf photos.tgz
# Sync to B2
cd Takeout/Google\ Photos/
b2 sync . b2://bucket-name/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment