Google Docs Batch Upload
A tool for batch upload documents to a Google Docs account with recursive traversing of directories. The tool supports PDF upload.
Supported formats: csv, doc, docx, html, htm, ods, odt, pdf, ppt, pps, rtf, sxw, tsv, tab, txt, xls, xlsx.
To run the application you need Java 1.6 (JRE 6) or greater installed: http://java.sun.com/javase/6/
Usage: java -jar google-docs-upload.jar
Usage: java -jar google-docs-upload.jar <path> --recursive
Usage: java -jar google-docs-upload.jar <path> --username <username> --password <password>
Usage: java -jar google-docs-upload.jar <path> --auth-sub <token>
[--username <username>] Username for a Google account.
[--password <password>] Password for a Google account.
[--recursive] Recursively upload all subfolders.
[--remote-folder <path>] The remote folder path to upload the documents separated by '/'.
[--without-folders] Do not recreate folder structure in Google Docs.
[--add-all] Upload all documents even if there are already documents with the same names.
[--skip-all] Skip all documents if there there are already documents with the same names.
[--replace-all] Replace all documents in Google Docs, which have the same names as the uploaded.
[--disable-retries] Disable auto-retries in the cases of failed upload.
[--auth-sub <token>] AuthSub token.
[--auth-protocol <protocol>] The protocol to use with authentication.
[--auth-host <host:port>] The host of the auth server to use.
[--protocol <protocol>] The protocol to use with the HTTP requests.
[--host <host:port>] Where is the feed (default = docs.google.com)You can also use short versions of the options, such as -u (--username), -p (--password), -rf (--remote-folder), etc.
Setup for easy launch in Windows
- Copy the latest jar file to your install folder, let's say C:\gdu\
- Create in C:\gdu\ an empty file called gdu.cmd
- Copy into C:\gdu\gdu.cmd the following content: java -jar C:\gdu\google-docs-upload-<version>.jar %1 -u <username> %*
- Replace <version> with the actual tool version and <username> with your Google account login
- Add the install path (C:\gdu\) to the Windows PATH variable
- Run the program by double-click on gdu.cmd or from Windows console: gdu <path> [<options>]
Let's say you have a folder C:\documents\ with documents that you often update with new ones. In order to simplify the regular upload of new documents to Google Docs, you can do the following:
- Create in C:\Documents\ an empty file upload.cmd
- Copy into C:\Documents\upload.cmd the content: gdu.cmd ./ -rf /Documents -r -sa
- Now to run the upload you just need to execute C:\Documents\upload.cmd
- Or you can schedule regular auto execution of the script using, for example, Windows Task Scheduler
Proxy support
To enable proxy support, run the program with the following standard Java properties specified:
java -DProxyHost=<host> -DProxyPort=<port> -jar google-docs-upload.jar
Changelog
Version 1.3.1 (02/01/2010)
- Fixed skip-all option for folders with many documents
- Fixed handling of non-alphabetical symbols in folder names
- Fixed the file counter in the progress indicator
Version 1.3 (27/12/2009)
- Google Docs size limits are enforced
- Added an option to specify the remote folder to upload documents
- Added an option to disable auto-retries
- Fixed the bug in uploading a single file
- Added the upload progress indicator
Version 1.2 (06/09/2009)
- Added the ability to replicate the folder structure in Google Docs
Version 1.1 (03/09/2009)
- Bug fixes
