From: Mark Wooding Date: Tue, 16 Jul 2013 18:16:50 +0000 (+0100) Subject: debian: Split into multiple packages. X-Git-Tag: 1.0.0~1 X-Git-Url: https://git.distorted.org.uk/~mdw/rsync-backup/commitdiff_plain/b2341f25cdff3bc9799cdbf1c92beb75c2b8d994 debian: Split into multiple packages. --- diff --git a/Makefile.am b/Makefile.am index 18bceaa..f943ad4 100644 --- a/Makefile.am +++ b/Makefile.am @@ -124,4 +124,14 @@ EXTRA_DIST += debian/copyright debian/changelog EXTRA_DIST += debian/control debian/rules EXTRA_DIST += debian/compat +## fshash +EXTRA_DIST += debian/fshash.install + +## rfreezefs +EXTRA_DIST += debian/rfreezefs.install + +## rsync-backup +EXTRA_DIST += debian/rsync-backup.install +EXTRA_DIST += debian/rsync-backup.examples + ###----- That's all, folks -------------------------------------------------- diff --git a/debian/.gitignore b/debian/.gitignore index 3a6cded..aa7dc1a 100644 --- a/debian/.gitignore +++ b/debian/.gitignore @@ -3,3 +3,6 @@ rsync-backup files substvars +fshash +rfreezefs +tmp diff --git a/debian/control b/debian/control index 4c0df73..39a21a4 100644 --- a/debian/control +++ b/debian/control @@ -6,17 +6,58 @@ XS-Python-Version: >= 2.5 Build-Depends: mlib-dev (>= 2.2.1), debhelper (>= 8.1) Standards-Version: 3.1.1 +Package: fshash +Architecture: all +Depends: python +Description: Calculate a digest of a filesystem. + The `fshash' program generates digests of filesystems. It aims to provide + three properties: + . + * Completeness: the digest describes everything `interesting' about the + filesystem, such that two filesystems which are interestingly different + will have different digests. + . + * Canonicalness: if two filesystems aren't different in any interesting + way, then their digests should be identical. + . + * Readability: given two subtly different filesystems, it should be easy + for a human equipped with digests for them and diff(1) to work out what + the differences actually are. + . + The digests include cryptographic hashes of the files. These can take time + to compute, so `fshash' can keep a cache of hashes. + +Package: rfreezefs +Architecture: linux-any +Depends: ${shlibs:Depends} +Recommends: ssh-server +Description: Freeze filesystems safely under remote control. + Filesystems can be `frozen', i.e., placed in a consistent state, with write + operations delayed. This is useful when taking snapshots, and LVM (for + example) freezes filesystems mounted on a logical volume automatically when + taking a snapshot. This doesn't work if the filesystem is mounted on a + separate machine from the one hosting the block device, e.g., if the volume + is provided by a VM host to its guest, or as a remote block device. + . + The `rfreezefs' program explicitly freezes a filesystem so that a consistent + snapshot can be taken. It goes to considerable lengths to avoid unpleasant + conditions such as deadlocks while filesystems are frozen. + Package: rsync-backup -Architecture: any -Depends: ${shlibs:Depends}, rsync, openssh-client +Architecture: all +Depends: rsync, openssh-client, fshash Recommends: lvm2 +Suggests: rfreezefs Description: Yet another `rsync --link-dest' backup script. It uses rsync's ability to create hardlinks from (apparently) similar - existing local trees to make incre- mental dumps efficient, even from remote + existing local trees to make incremental dumps efficient, even from remote sources. Restoring files is easy because the backups created are just - directories full of files, exactly as they were on the source - and this is - verified using the fshash(1) program (included). + directories full of files, exactly as they were on the source -- and this is + verified using `fshash'. . The script does more than just running rsync. It is also responsible for creating and removing snapshots of volumes to be backed up, and expiring old dumps according to a user-specified retention policy. + . + The `fshash' package is required on the server and all of the clients. The + `rfreezefs' package may be useful on clients which are VM guests. diff --git a/debian/fshash.install b/debian/fshash.install new file mode 100644 index 0000000..9ff8405 --- /dev/null +++ b/debian/fshash.install @@ -0,0 +1,2 @@ +/usr/bin/fshash +/usr/share/man/man1/fshash.1 diff --git a/debian/rfreezefs.install b/debian/rfreezefs.install new file mode 100644 index 0000000..2c42276 --- /dev/null +++ b/debian/rfreezefs.install @@ -0,0 +1,2 @@ +/usr/sbin/rfreezefs +/usr/share/man/man8/rfreezefs.8 diff --git a/debian/rsync-backup.install b/debian/rsync-backup.install new file mode 100644 index 0000000..9156279 --- /dev/null +++ b/debian/rsync-backup.install @@ -0,0 +1,4 @@ +/usr/sbin/rsync-backup +/usr/sbin/update-bkp-index +/usr/share/man/man8/rsync-backup.8 +/usr/share/man/man8/update-bkp-index.8