DocsboxI made my life a little easier and I want to share this with you. Now documents created in Google Docs are available offline and on all my work computers.

    I present to you a Python script that synchronizes documents between the Google Docs service and the directory on the disk, which in my case is the directory of the Dropbox service repository .



    1. Download and unzip the archive -
    2. Copy the docsbox.conf.example file to docsbox.conf and fill it with your data
    3. Install The Google Data Python Client Library (# easy_install gdata)
    4. Running the script: # python

    Principle of operation.

    First, the presence of the 'dropbox' folder (FOLDER parameter) is checked in Google Docs, if it is absent, it is created. A list of documents in this folder is requested. A search is made for documents (files with the extension .doc) in the specified directory (parameter BOX_PATH). Further, Google docs documents missing in the directory are unloaded from the service. Modified documents (those whose date of last update is not equal) are uploaded / loaded accordingly. Documents missing from Google Docs are uploaded to the service.

    Known Issues

    • If you delete a document in the Google Docs interface, then the next session, it will still load into it. (I have not yet figured out how to handle this situation)
    • Only documents are synchronized (".doc")


    It would be very wonderful if Dropbox had an API, then it would be possible to screw this script as a plug-in and everything would work on the machine, and not as it is now manually or by cron.


    The author is not responsible for the software provided. Use at your own risk.

    Also popular now: