#! /bin/sh /usr/share/dpatch/dpatch-run
## 30_basic_debian_tape.dpatch by <"Kurt B. Kaiser" <kbk@shore.net>>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Modify config to support basic Debian tape operations using tar.
## DP: Note that streaming can be greatly improved by using 'buffer'.
## DP: However, many will use disk backup these days instead of tape
## DP: and 'buffer' isn't required.
@DPATCH@
diff -urNad flexbackup~/flexbackup.conf flexbackup/flexbackup.conf
--- flexbackup~/flexbackup.conf 2003-09-21 15:59:58.000000000 -0700
+++ flexbackup/flexbackup.conf 2006-09-09 15:27:35.000000000 -0700
@@ -8,7 +8,7 @@
# Archive type? afio, dump, tar, cpio, star, pax, zip, lha, ar, shar
# 'copy' or 'rsync' are extra options if running in archive-to-disk mode.
# 'filelist' dumps a list of files in your cwd - for debugging setup/exclusion
-$type = 'afio';
+$type = 'tar';
# Configure backup "sets".
# Not needed if you use "-dir <dir>" to backup one tree at a time.
@@ -36,8 +36,9 @@
$compress = 'gzip'; # one of false/gzip/bzip2/lzop/zip/compress/hardware
$compr_level = '4'; # compression level (1-9) (for gzip/bzip2/lzop/zip)
-# Buffering program - to help streaming
-$buffer = 'buffer'; # one of false/buffer/mbuffer
+# Buffering program - to help streaming. The use of buffer or mbuffer
+# when writing to tape is recommended to avoid excessive drive wear.
+$buffer = 'false'; # one of false/buffer/mbuffer
$buffer_megs = '10'; # buffer memory size (in megabytes)
$buffer_fill_pct = '75'; # start writing when buffer this percent full
$buffer_pause_usec = '100'; # pause after write (tape devices only)
@@ -52,7 +53,7 @@
# If a directory, will archive to files in that directory rather than a device
# If "host:/dev/tapedevice", will use remote tape drive via rsh/ssh
#
-$device = '/dev/tape';
+$device = '/dev/nst0';
# Block size (in kilobytes!) to use for archive programs and dd. Default is
# 10 for most things. Some tape drives need 32 or 64. Set to '0' to