sysadmin:backups
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| sysadmin:backups [2013/09/29 22:30] – created Guillaume Mazoyer | sysadmin:backups [2021/01/04 20:41] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 11: | Line 11: | ||
| ===== RANCID ===== | ===== RANCID ===== | ||
| - | FIXME | + | ==== Installation ==== |
| + | |||
| + | First we need to install RANCID, Subversion (that will be used a VCS) and Apache 2 to have a WebSVN instance available. | ||
| + | < | ||
| + | apt-get install rancid subversion apache2 php5</ | ||
| + | |||
| + | ==== Configuration ==== | ||
| + | |||
| + | In the ''/ | ||
| + | |||
| + | - Modify < | ||
| + | - Modify < | ||
| + | - Add < | ||
| + | |||
| + | '' | ||
| + | |||
| + | Initialize the SVN repository where the changes will be tracked: | ||
| + | < | ||
| + | ./ | ||
| + | |||
| + | The '' | ||
| + | |||
| + | ==== Handling Cisco Small Business devices ==== | ||
| + | |||
| + | RANCID does not support Cisco Small Business devices by default. It requires some hacks to be able to backup the changes of a SG series devices (for example). As root run the following commands: | ||
| + | < | ||
| + | wget ' | ||
| + | wget ' | ||
| + | chmod a+x csb*</ | ||
| + | |||
| + | Also edit the '' | ||
| + | < | ||
| + | |||
| + | ==== Add device to backup ==== | ||
| + | |||
| + | Using the rancid user, create the '' | ||
| + | < | ||
| + | add user | ||
| + | add password | ||
| + | add autoenable sw0.gravitons.in | ||
| + | add method | ||
| + | add userprompt sw0.gravitons.in | ||
| + | </ | ||
| + | |||
| + | Also add the following line to the '' | ||
| + | < | ||
| + | |||
| + | If the device was a more //classic// Cisco device we would have used something like this in the '' | ||
| + | < | ||
| + | add method | ||
| + | add user | ||
| + | add password sw0.gravitons.in | ||
| + | </ | ||
| + | And this in the '' | ||
| + | < | ||
| + | |||
| + | ==== WebSVN ==== | ||
| + | |||
| + | With WebSVN it will be possible to have a user-friendly view of what RANCID backups and records. | ||
| + | < | ||
| + | wget ' | ||
| + | tar xf websvn-2.3.3.tar.gz | ||
| + | mv websvn-2.3.3 svn | ||
| + | cp / | ||
| + | chown -R www-data: | ||
| + | |||
| + | Now the following line needs to be added to the WebSVN configuration to see the repository. | ||
| + | < | ||
| + | |||
| + | Eventually, Apache needs to be able to read the files in the SVN repository. | ||
| + | < | ||
sysadmin/backups.1380493833.txt.gz · Last modified: 2021/01/04 20:41 (external edit)
