X-Git-Url: http://git.tuebingen.mpg.de/?p=dss.git;a=blobdiff_plain;f=INSTALL;h=182d58ca1cced093ad5875071933b7949bae0124;hp=8dd3846bb3cd8aa5c4264b84c2ef6756fed2f991;hb=0f2b297697d2c5d0ab9ee71d51c2e47fb4508aba;hpb=8400c35d9158b420d99f20c54353bbf0b4a62b8b diff --git a/INSTALL b/INSTALL index 8dd3846..182d58c 100644 --- a/INSTALL +++ b/INSTALL @@ -6,8 +6,16 @@ in the dss source directory to build the dss executable and copy it to some directory that is included in your PATH, e.g. to $HOME/bin or to /usr/local/bin. -Note that you'll likely need a recent version of -ftp://ftp.gnu.org/pub/gnu/gengetopt/ (gnu gengetopt) to compile dss. +Note that https://www.gnu.org/software/gengetopt/gengetopt.html (gnu gengetopt) +is required to compile dss. + +Optionally, type + + make man + +to create the man page of dss. This invokes help2man so make sure +that help2man is installed on your system. Note that the man page is +just the nroff variant of the output of "dss --detailed-help". dss is known to compile on Linux, MacOS, Solaris, FreeBSD and NetBSD. However, it is run-tested only on Linux. @@ -15,8 +23,8 @@ NetBSD. However, it is run-tested only on Linux. Also make sure that http://rsync.samba.org/ (rsync) is installed on your system. Version 2.6.1 or newer is required. -Example: --------- +Examples: +--------- Suppose you'd like to create snapshots of the existing directory @@ -43,12 +51,35 @@ Then execute the commands In order to print the list of all snapshots created so far, use - dss --list + dss --ls + +Yes, it's really that easy. + +The second example involves a slightly more sophisticated config file. +It instructs dss to exclude everything which matches at least one +pattern of the given exclude file, prevents rsync from crossing file +system boundaries and increases the number of snapshots. + + source-dir "/foo/bar" + dest-dir "/baz/qux" + # exclude files matching patterns in /etc/dss.exclude + rsync-option "--exclude-from=/etc/dss.exclude" + # don't cross filesystem boundaries + rsync-option "--one-file-system" + # maintain 2^6 - 1 = 63 snaphots + num-intervals "6" + +The /etc/dss.exclude file could look like this (see rsync(1) for +more examples) + + + - /proc + - /**/tmp/ -Yes, it's really that easy. Of course, dss supports many more -features and config options such as taking snapshots from remote -hosts and several hooks that are executed on certain events, for -example whenever a snapshot was created successfully. Try +Note that dss supports many more features and config options such +as taking snapshots from remote hosts and several hooks that are +executed on certain events, for example whenever a snapshot was +created successfully. Try dss -h