~jelmer/ubuntu/quantal/etckeeper/merge-0.64

« back to all changes in this revision

Viewing changes to README

  • Committer: Bazaar Package Importer
  • Author(s): Thierry Carrez
  • Date: 2010-05-28 12:29:14 UTC
  • mfrom: (6.1.9 sid)
  • Revision ID: james.westby@ubuntu.com-20100528122914-9ifzk0bd8k2jldtt
Tags: 0.46ubuntu1
* Merge from debian unstable.  Remaining changes:
  - etckeeper.conf, debian/control: default to bzr.
  - debian/cron.daily: Avoid cron emails with daily autocommits if VCS=hg
  - commit.d/50vcs-commit: Do not use author so that bzr log --line shows
    the right name (and hostname)
  - etckeeper: Set HOME=~root if VCS=bzr, so that bzr doesn't create
    root-owned .bazaar and .bzr.log in home directories when run under sudo
* etckeeper.spec: Change version to match Ubuntu version

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