File: sample_multiCDrc

package info (click to toggle)
multicd 1.6.3-4
  • links: PTS
  • area: main
  • in suites: woody
  • size: 100 kB
  • ctags: 17
  • sloc: perl: 804; makefile: 36
file content (139 lines) | stat: -rw-r--r-- 5,951 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
# Dan Born
# djb4@cs.geneseo.edu

# See http://cs.geneseo.edu/~djb4/multiCD/ for documentation, information
# about usage, and how to configure multiCD on your system.

# This is a sample configuration file for my multiCD program.  Everything that
# is configurable about my program is listed here.  You'll want to make sure
# you change these to useful values for your system.

# All file paths must be absolute.  No relative path names.
# If a line contains a "#", everything after that is a comment.

# Options in the global config file are overridden by options in a user's
# config file, which can both be overridden by command line options.

# Command line options have the same name as their name in here.  Boolean
# options don't need a value on the command line.  For booleans, if the option
# appears, true (or enabled) is assumed.
# Examples:
# multiCD --files /home /etc /usr/local --exclude /home/httpd --only_one
# multiCD --files / --exclude /tmp /dev /proc --multi

# NOTE: If you are a user of a previous version of multiCD, it is important
# to note that the use of image_dir is no longer supported.  Image file
# locations are now specified by giving the full path to the name of the
# image file by using image_file1 and image_file2.

# Turns on multithreadedness.  This will cause the files for the next CD image
# to be copied while the current one is still burning.  0 to disable this, 1
# to enable it.
multi = 0

# If this is enabled, then multiCD will run in a non-interactive mode.  It
# will fit all of the files it can onto a single CD image, assume that a
# disc is in the writer, burn the CD, and then quit.  1 to enable this, 0
# to disable it.  You can assume that enabling this disables any
# multithreading.
only_one = 0

# Tell multiCD where to put and what to name the image file.  After a CD
# has been burned from a given image file, a new file system is created on the
# image file and it is reused for the next set of data.  This is much better
# than deleting the old image file and creating a new one, because creating
# image files usually takes a long time.
# Required field.
image_file1 = /root/multiCD_image1

# If multi is enabled, a second image file is required.
image_file2 = /root/multiCD_image2

# The mount point for the image file while files are being copied to it.
# Required field.
image_mount = /mnt/multiCD_image_mount

# The size of the image file to create.  Can be specified in terms of
# megabytes, kilobytes, or bytes.
# Examples:
# 650M        # Use an "M" for megabytes.
# 665600K     # Use a "K" for kilobytes.
# 681574400   # Don't use any letter for bytes.
# Required field.
cd_size = 650M

# Type of file system to create on the backup CDs.  Typically only works
# with ext2.  This will probably be expanded to include other filesystem
# types in the future.
# Required field.
fs_type = ext2

# Extra options to give to mkfs.  The options shown here apply to
# the default filesystem type of ext2 shown above.  -m 0 means
# reserve 0 space for root, and -b 1024 sets the block size.
mkfs_opts = -m 0 -b 1024

# List of files to backup.
# Example: files = /home /etc /usr/local "/home/joe smith"
# Note: In the config file, you may use double quotes with the files and
# exclude options for files that contain spaces.
# Required field.
files = /

# List of files to exclude from the list given for files above.
exclude = /dev /lost+found /mnt /proc /tmp /usr/tmp /var/tmp

# This is how cdrecord should be run, with the name of the image file to
# burn appened to the end.  Any output cdrecord produces is sent to STDERR.
# Required field.
cdrecord = cdrecord -v blank=fast speed=4 dev=0,0,0 -data

# You can use this to specify a command to run after each CD is done
# burning.
# The example shown simply opens the CD tray, but you could configure
# it to run a command that plays a sound, or both ejects and plays a sound,
# like this: cd_done = cdrecord dev=0,0,0 -eject; cat cdsound.wav > /dev/dsp
cd_done = cdrecord dev=0,0,0 -eject

# Yet another mode of operation.  If enabled, then multiCD will create as
# many image files as it needs to backup all of your files.  It won't burn
# any CDs, just create a bunch of image files.  For the image file names it
# will use the image_file1 value followed by the CD number.
# 1 to enable, 0 to disable.
noburn = 0

# Another way to speed things along.  If this is enabled, then it is
# assumed that the first disc for burning is already in the drive.  The
# first CD will be burned automatically without prompting the user to put a
# disc in, but all discs after the first will be prompted for.
first_disc = 0

# multiCD normally starts out with blank CDs before it begins copying
# files.  With this option enabled, multiCD will save a copy of all the
# files on the current CD, and add the new ones to it.  1 to enable, 0 to
# disable.
addfiles = 0

# If addfiles is enabled, then the rewriteable CD will need to be mounted
# and have files copied from it.  cd_dev and cd_mount are needed only when
# addfiles is enabled.  cd_dev is the device file for you cd burner.
cd_dev = /dev/scd0

# cd_mount is needed when addfiles is enabled.  This is where the
# rewriteable CD should be mounted in order to read files from it.
cd_mount = /mnt/cdrom1

# If this option is specified, an index file is created at the given
# location.  Otherwise, no index file is created.
# An index file is a simply a plain text file with a list of the files
# on each CD.  This helps in determining which CD a file can be located on.
# You can include %d to have the date and time be part of the file name.
index_file = /root/multiCD_index_%d

# If check_config is set to 1, multiCD will check to see if it has a valid
# configuration, and then exit without doing anything.
check_config = 0

# This is here because people often expect to be able to give a --help option
# on the command line.  If set, program prints a message and then exits.
help = 0