Skip to content

Latest commit

 

History

History
52 lines (38 loc) · 1.11 KB

README.markdown

File metadata and controls

52 lines (38 loc) · 1.11 KB

Deveba is a simple wrapper around git to synchronize folders on multiple computers.

Setup

Adding a folder to sync

Create a git repository in the folder you want to sync:

cd ~/my-folder
git init
# Optional: setup a .gitignore
git add .
git ci
# Publish the new repository to some server
git remote add origin git/url/for/my-folder.git

Create a config file for deveba

mkdir -p ~/.config/deveba
cat ~/.config/deveba/deveba.xml <<EOF
<config>
  <group name="daily">
    <repo path="~/my-folder"/>
    <!-- Add more repo here if needed -->
  </group>
</config>
EOF

Add a cronjob calling deveba with your group:

deveba daily

Syncing an existing folder

Clone the folder from the server

git clone git/url/for/my-folder.git

Create a config file for deveba

mkdir -p ~/.config/deveba
cat ~/.config/deveba/deveba.xml <<EOF
<config>
  <group name="daily">
    <repo path="~/my-folder"/>
    <!-- Add more repo here if needed -->
  </group>
</config>
EOF

Add a cronjob calling deveba with your group:

deveba daily