Data-bag is a tool that helps keep your files consistent across multiple computers. This repository contains the data-bag's source code.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

About this repository

This repository contains the source code of the Data-bag file synchronization tool. Its top-level components are:

    src/           Data-bag source files.
    lib/           Run-time libraries used by Data-bag.
    LICENSE/       Legal documents with the project's licensing terms.      A summary of licenses that apply to Data-bag with
                    references to detailed legal documents.
    build.xml      Configuration file for the tool (ANT) that builds the
                    project's executable and other artifacts.
    .classpath     Eclipse configuration file for the project.
    .project       Eclipse configuration file for the project.
    docs/          The project's documentation.
    test/          Source files of the project's regression tests.

Building a Data-bag executable

To build a Data-bag executable from these sources, you need:

Even though a Java runtime may already be installed on your machine (check that by running java --version), the build will fail if you don't have a complete JDK (check that by running javac).

We further assume that you have properly configured JAVA_HOME and ANT_HOME environment variables and that you can run both ant and java without prefixes on the command line. You may want to tweak the following commands if you have a different configuration.

To build a Data-bag executable, change dir to the working copy of this repository (working tree), and run ANT:


The result is a JAR file databag.jar with statically-linked runtime libraries.

Running Data-bag

As of now, the only interface to Data-bag is command line. The statically-linked databag.jar built using the above instructions does not require any additional Java configuration to run. For example, to test a Data-bag binary built at the root of your working tree, run:

    java -jar databag.jar -?

You should see verbose output explaining the tool's command line syntax and describing most of its options. Please refer to the Data-bag manual for further information.

Hacking Data-bag

Once you have a clone of this repository, you can import it into Eclipse using the enclosed .classpath and .project files. You may have to update source and javadoc locations for the run-time libraries. To compile and run tests for the project, you'll have to download JUnit 4.5 or newer from and add them as a library to your build path. To generate javadoc for the project, use ANT:

    ant javadoc

Then, navigate to file index.html in the javadoc directory of your working tree to browse the javadoc.

Contacting the project's team

You can send a message to the project's team via the Contact page at or via GitHub. We will be glad to hear from you!