UP  |  HOME

yadm

Table of Contents

Initial setup

yadm init
yadm add ~/.directory
yadm add ~/.file
yadm add ...
yadm commit

Then add a default file (##default suffix) and a OS/hostname (##o.Linux,h<hostname>*)

yadm add ~/.file##default
yadm add ~/.file##o.Linux,h.<hostname>
yadm commit

Adding a remote

I use the remote for pushing changes to other machines and backup purposes.

git init --bare /path/to/remote/yadm
yadm remote add origin /path/to/remote/yadm
yadm push -u origin master /path/to/remote/yadm
mkdir /path/to/remote/yadm/.git
mv /path/to/remote/yadm/* /path/to/remote/yadm/.git/
sed -i 's/bare = true/bare = false' /path/to/remote/yadm/.git/config /path/to/remote/yadm
git checkout master

Cloning the repository to a new machine

You may have to deal with conflicting files. Newer versions of yadm (>=1.07) use a git stash, otherwise manually move files out of the way to complete the clone.

yadm clone /path/to/remote/yadm
yadm decrypt