Commit 54be70a0 authored by iv's avatar iv

readme: explain bare repositories and paths

parent a6cfe210
......@@ -6,7 +6,9 @@
:date: 2015 Aug 31
This program backups files and set of bare Git repositories into one Git repository.
This program backups files and set of **bare** Git repositories into one Git
repository. A bare repository is a repository that doesn't contain a working
directory.
Files are copied to blobs and then added to tree under certain place, and for
Git repositories, all reachable objects are pulled in with maintaining index
which remembers reference -> sha1 for all pulled repositories.
......@@ -19,6 +21,10 @@ synchronize backups in several places.
Backup workflow is:
0. in case of some non-bare repositories:
$ git clone --bare nonbarerepo dir1
1. create backup repository::
$ mkdir backup
......@@ -29,6 +35,7 @@ Backup workflow is:
$ git-backup pull dir1:prefix1 dir2:prefix2 ...
where dir1 and dir2 are relative or absolute path.
This will pull bare Git repositories & just files from `dir1` into backup
under `prefix1`, from `dir2` into backup prefix `prefix2`, etc...
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment