/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to doc/en/admin-guide/backup.txt

  • Committer: Jelmer Vernooij
  • Date: 2018-11-18 18:23:32 UTC
  • mto: This revision was merged to the branch mainline in revision 7197.
  • Revision ID: jelmer@jelmer.uk-20181118182332-viz1qvqese2mo9i6
Fix some more Bazaar references.

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
::
58
58
 
59
59
  $ cd /var/backup
60
 
  $ bzr branch bzr+ssh://server.example.com/srv/bzr/trunk
61
 
  $ bzr branch bzr+ssh://server.example.com/srv/bzr/feature-gui
 
60
  $ brz branch bzr+ssh://server.example.com/srv/bzr/trunk
 
61
  $ brz branch bzr+ssh://server.example.com/srv/bzr/feature-gui
62
62
 
63
63
to create the branches on the backup server.  Then, we could regularly (for
64
64
example from ``cron``) do
66
66
::
67
67
 
68
68
  $ cd /var/backup/trunk
69
 
  $ bzr pull  # the location to pull from is remembered
 
69
  $ brz pull  # the location to pull from is remembered
70
70
  $ cd ../var/backup/feature-gui
71
 
  $ bzr pull  # again, the parent location is remembered
 
71
  $ brz pull  # again, the parent location is remembered
72
72
 
73
73
The action of pulling from the parent for all branches in some directory is
74
74
common enough that there is a plugin to do it.  The `bzrtools`_ plugin
82
82
::
83
83
 
84
84
  $ cd /var/backup
85
 
  $ bzr multi-pull
 
85
  $ brz multi-pull
86
86
 
87
87
Note that ``multi-pull`` does a pull in *every* branch in the specified
88
88
directory (the current directory by default) and care should be taken that
108
108
::
109
109
 
110
110
  $ cd /srv/bzr/projectx/trunk
111
 
  $ bzr push bzr+ssh://backup.example.com/var/backup/trunk
 
111
  $ brz push bzr+ssh://backup.example.com/var/backup/trunk
112
112
  $ cd ../feature-gui
113
 
  $ bzr push bzr+ssh://backup.example.com/var/backup/feature-gui
 
113
  $ brz push bzr+ssh://backup.example.com/var/backup/feature-gui
114
114
 
115
115
and then we need to bind the main branches to their backups
116
116
 
117
117
::
118
118
 
119
119
  $ cd ../trunk
120
 
  $ bzr bind bzr+ssh://backup.example.com/var/backup/trunk
 
120
  $ brz bind bzr+ssh://backup.example.com/var/backup/trunk
121
121
  $ cd ../feature-gui
122
 
  $ bzr bind bzr+ssh://backup.example.com/var/backup/feature-gui
 
122
  $ brz bind bzr+ssh://backup.example.com/var/backup/feature-gui
123
123
 
124
124
A branch can only be bound to a single location, so multiple backups cannot
125
125
be created using this method.  
197
197
  $ cd /srv
198
198
  $ mv bzr bzr.old
199
199
  $ cd bzr
200
 
  $ bzr branch bzr+ssh://backup.example.com/var/backup/trunk
201
 
  $ bzr branch bzr+ssh://backup.example.com/var/backup/feature-gui
 
200
  $ brz branch bzr+ssh://backup.example.com/var/backup/trunk
 
201
  $ brz branch bzr+ssh://backup.example.com/var/backup/feature-gui
202
202
 
203
203
If there are multiple backups, then change the URL above to restore from the
204
204
other backups.