sickill/bitpocket — Issue #15: Use internal (local) git repo to version selected files
Author: sickill
Created: 2012-01-25 19:37:27+00:00
State: open

There are some feature requests related to versioning synced files. I don't have implementing native versioning in plans because the goal of git-dude was and still is to be simple sync tool built on rsync.

However, I can see one, possibly working, solution based on git:

bitpocket could have internal, local, git repository (ie. hidden in .bitpocket/git) and working tree being your ~/BitPocket dir. All files could be ignored by default and you would run `bitpocket track somefile` to add it to git and start versioning. Later you could either run `bitpocket snapshot` at any time to commit all the changes from tracked files or run `bitpocket sync --snapshot` to commit+sync. This local git repository would be transferred with rsync to other machines like all other files.

This way the repository size can be reasonably small because of tracking only files you want (and you definitely don't want to track mp3 or avi files). Files not tracked by git would still be synced to other machines like they're now.

Thoughts? Suggestions?