07.06.2014 Views

2 - Raspberry PI Community Projects

2 - Raspberry PI Community Projects

2 - Raspberry PI Community Projects

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

the expiration date associated with that copy. dirvish-expire simply peruses<br />

the stored copies and deletes those for which the expiration date has passed.<br />

client: rivendell.falcot.com<br />

tree: /<br />

xdev: 1<br />

index: gzip<br />

image-default: %Y%m%d<br />

exclude:<br />

/var/cache/apt/archives/*.deb<br />

/var/cache/man/**<br />

/tmp/**<br />

/var/tmp/**<br />

*.bak<br />

Example 9.4<br />

The /backup/root/dirvish/default.conf file<br />

The above example specifies the set of files to back up: these are files on the machine rivendell.falcot.com<br />

(for local data backup, simply specify the name of the local machine as indicated by<br />

hostname), especially those in the root tree (tree:/), except those listed in exclude. The backup<br />

will be limited to the contents of one filesystem (xdev:1). It will not include files from other<br />

mount points. An index of saved files will be generated (index:gzip), and the image will be<br />

named according to the current date (image-default:%Y%m%d).<br />

There are many options available, all documented in the dirvish.conf(5) manual page. Once<br />

these configuration files are setup, you have to initialize each file set with the dirvish --<br />

vault vault --init command. From there on the daily invocation of dirvish-runall will<br />

automatically create a new backup copy just after having deleted those that expired.<br />

IN PRACTICE<br />

Remote backup over SSH<br />

When dirvish needs to save data to a remote machine, it will use ssh to connect<br />

to it, and will start rsync as a server. This requires the root user to be able<br />

to automatically connect to it. The use of an SSH authentication key allows<br />

precisely that (see Section 9.2.2.1, “Key-Based Authentication” (page 190)).<br />

9.10.2. Restoring Machines without Backups<br />

Desktop computers, which are not backed up, will be easy to regenerate from CD-ROMs made by<br />

the mondo program. These bootable CD-ROMs allow complete re-installation of the machine's<br />

system. But beware: files that are not part of the system or the user's home directory will not,<br />

themselves, be backed up by mondo. This includes, for example, users' local crontabs, as well as<br />

any changes made to system configuration since the preparation of the CD-ROM.<br />

212 The Debian Administrator's Handbook

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!