Skip to content

Instantly share code, notes, and snippets.

@ceilidhboy
Last active October 26, 2022 10:54
Show Gist options
  • Save ceilidhboy/af769eac1be6cf9116f4e765f410e57b to your computer and use it in GitHub Desktop.
Save ceilidhboy/af769eac1be6cf9116f4e765f410e57b to your computer and use it in GitHub Desktop.

How to upload files, e.g. MySQL database export

  • In a terminal, install gdown with pip install gdown
  • Upload the file you want to send to the server to Google drive
  • Copy the "anyone with link" share link for the file
  • Paste it into notepad and copy the file ID from the link
  • cd to the directory you want the file to go (or use the -O <path> option with gdown)
  • Download the file with ~/.local/bin/gdown <file ID>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment