~ubuntu-branches/ubuntu/oneiric/etckeeper/oneiric-proposed

« back to all changes in this revision

Viewing changes to README

  • Committer: Bazaar Package Importer
  • Author(s): Joey Hess
  • Date: 2010-04-15 11:50:22 UTC
  • mto: (6.1.9 sid)
  • mto: This revision was merged to the branch mainline in revision 21.
  • Revision ID: james.westby@ubuntu.com-20100415115022-eur37zh239xu93zo
Tags: 0.45
* Revert darcs to using --logfile again, necessary for multiline commit
  messages. Closes: #577915
* Fix logic error in darcs user code. Closes: #577918

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
configurable, while also being simple to use if you understand the basics
7
7
of working with version control.
8
8
 
 
9
 
9
10
## security warnings
10
11
 
11
12
First, a big warning: By checking /etc into version control, you are
149
150
remote clone is mode 700! (And, obviously, only push over a secure
150
151
transport like ssh, and only to a server you trust.)
151
152
 
152
 
        ssh server 'mkdir /etc-clone; cd /etc-clone; chmod 700 .; git init'
153
 
        git push ssh://server/etc-clone master
 
153
        ssh server 'mkdir /etc-clone; cd /etc-clone; chmod 700 .; git init --bare'
 
154
        git remote add backup ssh://server/etc-clone
 
155
        git push backup --all
154
156
 
155
157
If you have several machine's using etckeeper, you can start with a
156
158
etckeeper repository on one machine, then add another machine's etckeeper
206
208
 
207
209
        chmod -x /etc/etckeeper/commit.d/50vcs-commit
208
210
 
 
211
Here's how to make it automatically push commits to a clone of the
 
212
repository as a backup (see instructions above to set up the clone safely):
 
213
 
 
214
        cd /etc/etckeeper/commit.d
 
215
        (echo '#!/bin/sh' ; echo 'git push backup') > 99git-push
 
216
        chmod +x 99git-push
 
217
        git add .
 
218
        git commit -m "automatically push commits to backup repository"
209
219
 
210
220
## changing VCS
211
221