|
Backups on CD
Chapter 4 Important Options, Global Settings |
This file must be named via the switch -e. Excludelist may be a empty file, but can't be missed.
# Example exclude list: will be adapted for using with afio
# (find | grep -v -f) by adding the leading dash and tar
# (adding a following asterisk).
amnt/
cdrom/
floppy/
initrd/
misc/
mnt/
proc/
tmp/
|
This file is normally known by a built in parameter which can be overridden by the switch -rc (see Usage, Section 1.1).
# Exmaple rc-file for backuponcd. Don't rename or remove it.
# Most important parameter are TMP, tracks and tracksize.
# Read The Fine Manual if you don't guess what the
# signification is.
tracksize=200
tracks=3
# Change this to a directory where you have enough free disk
# space. You need 2 * $tracksize (Mbyte), see above.
# Notice that each track needs a scace of $tracksize + ~12 MByte
# on the CD. So try out 'tracksize=94' 'tracks=6', it should
# work also. It doesn't matter when the last track doesn't fit.
# A 'lost' track is stored on the next CD.
TMP=/tmp
# No comment:
rawdevice=/dev/cdwriter
mountpt=/cdwriter
# Current possible: afio or tar.
archiver=afio
afioexcludes=".Z .z .gz .arc .gif .zip .zoo .lha .tpz .taz .tgz .tzg .deb .bz2"
# This is a part of the volumename of the CD
# Use only valid chars of filenames, no spaces.
dateformat="%Y-%m-%d"
# --- Parameter of cdrecord --
# Type 'man cdrecord' if you didn't hear about the following
# parameter:
dev="dev=0,4,0"
# '-eject' depends on the philipps CDD 3600 isn't able to
# read trackinfo without reset. Try out devdepend="speed=x"
# with any other cdwriter.
devdepend="speed=2 fs=8m -eject"
# Minimizing package dependencies, could also be
# "cdeject -d $rawdevice":
ejectcmd="cdrecord $dev -eject"
loadcmd="cdrecord $dev -load"
# You shouldn't need to change anything below this line
# The next two items must be found in $PATH:
burn_it=backuponcd_toast.sh
verify=backuponcd_fifo-in.sh
# Internal stuff:
arch_dir=$TMP/backup.$$
log_dir=$arch_dir/log
script_dir=$arch_dir/scripts
toast_dir=$arch_dir/burn
variable=$script_dir/variable.sh
notcomp=$log_dir/compress-exclude
filelist=$log_dir/filelist
logfile=$log_dir/logfile
archive=$arch_dir/$arch_name
|
Note: Change the internal stuff if you don't like the filenames and if you know what you are doing.
Backups on CD
|
|