Skip to content

Instantly share code, notes, and snippets.

@pricees
Created December 8, 2012 08:41
Show Gist options
  • Select an option

  • Save pricees/4239313 to your computer and use it in GitHub Desktop.

Select an option

Save pricees/4239313 to your computer and use it in GitHub Desktop.
Google Drive Companion help
======================
Google Drive Companion
======================
gdriver s # start server
== Upload Files ==
gdpush [local file] [remote file]
gdpush /tmp/foo remote/path/bar # push local file /tmp/foo -> remote/path/bar
gdpush /tmp/foo [remote file] # push local file /tmp/foo -> remote /tmp/foo
gdpush relative.txt [remote file] # push file in current directory, will retain directory structure if remote file unspecified, beware!
== Download Files ==
gdpull /remote/path/bar.txt # Download to the relative path (./bar.txt)
gdpull /remote/path/bar.txt /tmp/foo.txt # Download to absoltute path and filename
== Move Files ==
gdmv /foo/bar.txt /new/path # push remote file to different directory (/foo/bar.txt - > new/path/bar.txt)
== Remove Remote Files ==
gddel /new/path/bar.txt # Delete a file
gddel /new/ # Delete the whole directory (AHHHHHHHHHH!)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment