Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 230 lines (187 sloc) 8.728 kB
f7a58fa First public commit
gboudreau authored
1
2 # This file is part of Greyhole.
3
4 #### Database Connection ####
c804a77 New feature: allow greyhole to work with either MySQL or SQLite. Patc…
gboudreau authored
5 # Available engines: mysql, sqlite
6 # When choosing sqlite, 'db_host', 'db_user', 'db_pass' & 'db_name' options are not required, but 'db_path' is.
f7a58fa First public commit
gboudreau authored
7
c804a77 New feature: allow greyhole to work with either MySQL or SQLite. Patc…
gboudreau authored
8 db_engine = mysql
f7a58fa First public commit
gboudreau authored
9 db_host = localhost
10 db_user = greyhole_user
11 db_pass = 89y63jdwe
12 db_name = greyhole
c804a77 New feature: allow greyhole to work with either MySQL or SQLite. Patc…
gboudreau authored
13 #db_path = /var/cache/greyhole.sqlite
f7a58fa First public commit
gboudreau authored
14
15 #### Email Recipient ####
09374bd Issue 7: Handle disappearing graveyard better
gboudreau authored
16 # Will receive email reports for daily fsck, or when all drives are out of
17 # available space.
7dbdbcc New web-app to configure; simplified installation instructions; commi…
gboudreau authored
18 # When specifying no @hostname, the email will be delivered to the local
19 # mailbox of that user.
f7a58fa First public commit
gboudreau authored
20
7dbdbcc New web-app to configure; simplified installation instructions; commi…
gboudreau authored
21 email_to = root
22 #email_to = root@test.com
f7a58fa First public commit
gboudreau authored
23
d570e63 @gboudreau New feature: greyhole.conf controls daemon niceness (default to 1)
authored
24 #### Greyhole Daemon Niceness ####
25 # Niceness of the background daemon that handle most of the heavy lifting.
26 # Number between -20 and 19.
27 # The higher the number, the more 'nice' the daemon will be, i.e. the less
28 # resources it will get, versus other processes with a lower niceness.
29
30 # daemon_niceness = 1
31
f7a58fa First public commit
gboudreau authored
32 #### Greyhole Log File ####
33
50185fe @gboudreau Improvement: You can now log to syslog instead of a standard file
authored
34 # greyhole_log_file = syslog
f7a58fa First public commit
gboudreau authored
35 greyhole_log_file = /var/log/greyhole.log
36
50185fe @gboudreau Improvement: You can now log to syslog instead of a standard file
authored
37 # Available verbosity levels: DEBUG, INFO, WARN, ERROR
e234a92 Bugfix: missing commit for r305 (last commit): --status command line …
gboudreau authored
38 # Note that for --status to work correctly, you'll need to keep this to DEBUG.
f7a58fa First public commit
gboudreau authored
39
40 log_level = DEBUG
41
42 # Log Greyhole memory usage on each log line?
43
44 log_memory_usage = no
45
622bd02 Improvement: added new setting to skip lsof checks; not sure this is …
gboudreau authored
46 # Look for other processes working on files on the Greyhole shares?
47 # Disable to get more speed, but this might break some files, if any
48 # application change your files while Greyhole tries to work on them.
49
50 check_for_open_files = yes
51
f7a58fa First public commit
gboudreau authored
52 #### Shares Settings ####
53 # Number of copies of each file you want Greyhole to keep, per Share.
54 # This is not the number of duplicates! 2 copies = 1 duplicate
55 # If you change one of those, you should run fsck manually, or wait for the
4720f1c Bugfixes for Amahi integration with newly installed Greyhole (not yet…
gboudreau authored
56 # daily fsck, to have the additional copies created, or extra copies deleted.
57 #
58 # Example:
59 #
60 # num_copies[Backups] = 2
61 # num_copies[CrashPlan] = 2
62 # num_copies[Games] = 2
63 # num_copies[Music] = 2
e84174d @gboudreau Improvement: you can now use the keyword 'max' in greyhole.conf num_c…
authored
64 # num_copies[Photos] = max # This will insure those files are on all HDD
4720f1c Bugfixes for Amahi integration with newly installed Greyhole (not yet…
gboudreau authored
65 # num_copies[RecordedTV] = 1
66 # num_copies[Software] = 2
67 # num_copies[TimeMachine] = 1
68 # num_copies[Videos] = 2
f7a58fa First public commit
gboudreau authored
69
70 #### Storage Pool ####
71 # Where should the file copies be kept?
72 # You probably want to list all your physical hard drives here.
73 # Also specify how much free space you want to reserve on each drive. This is
74 # a soft limit that will be ignored if the necessary hard drives are below
75 # their minimum.
76 # For example, if you specify a 100 GB limit on all drives, and only one still
77 # have more than 100 GB of free space, and you save a new file on a share for
78 # which you specified you want multiple copies, this drive will be used first,
79 # but the other drives that have less free space will be used to store the
80 # additional copies.
4720f1c Bugfixes for Amahi integration with newly installed Greyhole (not yet…
gboudreau authored
81 #
82 # Example:
83 #
e950bd0 @gboudreau Improvement: storage pool directories are now called storage pool drives
authored
84 # storage_pool_drive = /mnt/hdd0/gh, min_free: 10gb
85 # storage_pool_drive = /mnt/hdd1/gh, min_free: 10gb
86 # storage_pool_drive = /mnt/hdd2/gh, min_free: 10gb
87 # storage_pool_drive = /mnt/hdd3/gh, min_free: 10gb
f7a58fa First public commit
gboudreau authored
88
7311907 @gboudreau Improvement: .greyhole_uses_this files are not needed anymore
authored
89 # The following can help you test Greyhole by defining multiple storage_pool_drive
90 # that are in fact just empty directories on the same drive.
91 # WARNING! Do NOT enable that option when you're not testing Greyhole.
92 # Doing so could result is lost data when a drive will fail.
93 #
94 # allow_multiple_sp_per_device = no
95
0ccdd1e @gboudreau Improvement: more directory > drive refactoring; dir_selection_* conf…
authored
96 ### Storage Drive Selection Groups ###
a0cf4ea @gboudreau New options to prioritize specific drives
authored
97 # The groups you define here will be available to use in the
0ccdd1e @gboudreau Improvement: more directory > drive refactoring; dir_selection_* conf…
authored
98 # drive_selection_algorithm option(s) below.
2983e6d @gboudreau Improvement: new recommendations on dir_selection_algorithm
authored
99 # The group names (OK, NEW, BROKEN, REMOTE in the example below) can be
a0cf4ea @gboudreau New options to prioritize specific drives
authored
100 # anything you'd like.
101 # Use one line per group, with the following syntax:
e950bd0 @gboudreau Improvement: storage pool directories are now called storage pool drives
authored
102 # group name: one or more (comma-separated) storage pool drives
103 # If you ommit any storage pool drive from your groups, this drive
a0cf4ea @gboudreau New options to prioritize specific drives
authored
104 # will NOT be used by Greyhole!
2983e6d @gboudreau Improvement: new recommendations on dir_selection_algorithm
authored
105 #
106 # See https://github.com/gboudreau/Greyhole/wiki/SuggestedStorageSelectionAlgorithmUsage
107 # on how we suggest you use this feature.
a0cf4ea @gboudreau New options to prioritize specific drives
authored
108
0ccdd1e @gboudreau Improvement: more directory > drive refactoring; dir_selection_* conf…
authored
109 # drive_selection_groups = OK: /mnt/hdd0/gh, /mnt/hdd2/gh
110 # NEW: /mnt/hdd1/gh
111 # BROKEN: /mnt/hdd3/gh
112 # REMOTE: /mnt/remote1/gh
a0cf4ea @gboudreau New options to prioritize specific drives
authored
113
0ccdd1e @gboudreau Improvement: more directory > drive refactoring; dir_selection_* conf…
authored
114 # You can also define drive_selection_groups for specific shares:
a0cf4ea @gboudreau New options to prioritize specific drives
authored
115 #
0ccdd1e @gboudreau Improvement: more directory > drive refactoring; dir_selection_* conf…
authored
116 # drive_selection_groups[Photos] = SATA: /mnt/hdd0/gh
117 # IDE: /mnt/hdd1/gh, /mnt/hdd2/gh
118 # USB: /mnt/hdd3/gh
a0cf4ea @gboudreau New options to prioritize specific drives
authored
119
0ccdd1e @gboudreau Improvement: more directory > drive refactoring; dir_selection_* conf…
authored
120 #### Storage Drive Selection Algorithm ####
f7a58fa First public commit
gboudreau authored
121 # available algorithms: random, most_available_space
e950bd0 @gboudreau Improvement: storage pool directories are now called storage pool drives
authored
122 # most_available_space: use the drives with the most available space
f7a58fa First public commit
gboudreau authored
123 # first, so that available space on all drives should become and stay
124 # balanced.
e950bd0 @gboudreau Improvement: storage pool directories are now called storage pool drives
authored
125 # random: use a random drive with available space
f7a58fa First public commit
gboudreau authored
126
0ccdd1e @gboudreau Improvement: more directory > drive refactoring; dir_selection_* conf…
authored
127 drive_selection_algorithm = most_available_space
f7a58fa First public commit
gboudreau authored
128
0ccdd1e @gboudreau Improvement: more directory > drive refactoring; dir_selection_* conf…
authored
129 # If you defined drive_selection_groups above, you'll want to use them here.
a0cf4ea @gboudreau New options to prioritize specific drives
authored
130 # Use the 'forced' keyword, then list the groups you want to use, in order, and
e950bd0 @gboudreau Improvement: storage pool directories are now called storage pool drives
authored
131 # prefix each group name with the number of drives you want to use from
a0cf4ea @gboudreau New options to prioritize specific drives
authored
132 # that group before using the next group.
e950bd0 @gboudreau Improvement: storage pool directories are now called storage pool drives
authored
133 # Use the 'all' keyword to indicate you want Greyhole to use all drives
0ccdd1e @gboudreau Improvement: more directory > drive refactoring; dir_selection_* conf…
authored
134 # from a specific group before starting to use drives from the next group.
a0cf4ea @gboudreau New options to prioritize specific drives
authored
135 # You'll need to indicate how Greyhole should pick drives within a group by
0ccdd1e @gboudreau Improvement: more directory > drive refactoring; dir_selection_* conf…
authored
136 # ending your line with either 'random' or 'most_available_space'.
a0cf4ea @gboudreau New options to prioritize specific drives
authored
137 #
0ccdd1e @gboudreau Improvement: more directory > drive refactoring; dir_selection_* conf…
authored
138 # drive_selection_algorithm = forced (1xOK, 1xNEW, 1xBROKEN, 1xREMOTE) most_available_space
a0cf4ea @gboudreau New options to prioritize specific drives
authored
139
0ccdd1e @gboudreau Improvement: more directory > drive refactoring; dir_selection_* conf…
authored
140 # You can also define drive_selection_algorithm for specific shares:
a0cf4ea @gboudreau New options to prioritize specific drives
authored
141 #
0ccdd1e @gboudreau Improvement: more directory > drive refactoring; dir_selection_* conf…
authored
142 # drive_selection_algorithm[Videos] = random
143 # drive_selection_algorithm[Photos] = forced (all SATA, 1xIDE, 1xUSB) random
a0cf4ea @gboudreau New options to prioritize specific drives
authored
144
7ae4a3a Issue 3: Allow option to force specific files on specific hard drive(s)
gboudreau authored
145 #### Sticky Files ####
146 # Sticky files are files that will always 'live' together, in the storage pool.
147 #
148 # This will allow you to read (and read-only!) those files by using the
e950bd0 @gboudreau Improvement: storage pool directories are now called storage pool drives
authored
149 # storage pool drives themselves, instead of using the mounted shares.
7ae4a3a Issue 3: Allow option to force specific files on specific hard drive(s)
gboudreau authored
150 # To see when that might be useful, read Issue #3 at the URL below.
151 # [http://code.google.com/p/greyhole/issues/detail?id=3]
152 #
153 # Each sticky_files line should start with the name of a share, followed by a
154 # directory inside that share.
155 # One or more stick_into lines should follow each sticky_files line, if you
156 # want the files to go on specific hard drive(s).
157 # If you don't specify any stick_into, the drive with the most free space will
158 # be use to hold your files together.
159
160 sticky_files = Music/
161
162 # sticky_files = Videos/Movies/
163 # stick_into = /mnt/hdd1/gh
164 # stick_into = /mnt/hdd5/gh
165
f7a58fa First public commit
gboudreau authored
166 # How long should free space calculations be cached (in seconds).
09374bd Issue 7: Handle disappearing graveyard better
gboudreau authored
167 # When selecting drives using their available / free space, the last cached
168 # value will be used.
f7a58fa First public commit
gboudreau authored
169 # Use 0 to disable caching.
170
171 df_cache_time = 15
172
e471fcd @R3vXX Issue 24 - relacing attic references with trash
R3vXX authored
173 #### Trash ####
e24ea76 @R3vXX Issue 24 - Change greyhole terminology
R3vXX authored
174 # Move deleted files to trash, instead of deleting them?
175 # (Yes, trash is just another name for a Recycle Bin.)
09374bd Issue 7: Handle disappearing graveyard better
gboudreau authored
176 # You can specify per-share preferences that will override the global
177 # preference.
f7a58fa First public commit
gboudreau authored
178
e24ea76 @R3vXX Issue 24 - Change greyhole terminology
R3vXX authored
179 delete_moves_to_trash = yes
180 # delete_moves_to_trash[CrashPlan] = no
181 # delete_moves_to_trash[TimeMachine] = no
de8942d Improvement: New option to use or not modified files to balance avail…
gboudreau authored
182
183 #### Balance with modified files ####
184 # Change this to 'yes' to use modified files copies to help balance the
e950bd0 @gboudreau Improvement: storage pool directories are now called storage pool drives
authored
185 # available space in your storage pool drives.
de8942d Improvement: New option to use or not modified files to balance avail…
gboudreau authored
186 # Note that this will force Greyhole to remove outdated copies, and
187 # re-create them on the drive(s) with the most available space.
188 # When set to 'no', existing copies will be kept, and updated using rsync.
189
190 balance_modified_files = no
da5ce61 New feature: frozen directories and --thaw command. See example conf …
gboudreau authored
191
192 #### Frozen directories ####
193 # Directories listed below will not be touched by Greyhole until the user
bf53426 Improvement: fixed small typos in example greyhole.conf
gboudreau authored
194 # wants it to (greyhole --thaw=<dir>).
da5ce61 New feature: frozen directories and --thaw command. See example conf …
gboudreau authored
195 #
196 # This can be used to process often-updated files at regular intervals,
197 # instead of having Greyhole process them as soon as they change.
198 #
199 # Each frozen_directory line should start with the name of a share, followed
200 # by a directory inside that share.
201
202 # frozen_directory = Data/mysql
6a0daa4 Improvement: configurable max_queued_tasks. Defaults are 1000 for SQL…
gboudreau authored
203
204 #### Maximum Queued Tasks ####
205 # Maximum number of queued tasks to store in MySQL/SQLite, when parsing the
bf53426 Improvement: fixed small typos in example greyhole.conf
gboudreau authored
206 # spool directory. Use a lower number if you experience slowness while parsing
207 # spooled operations.
03058f2 @gboudreau Improvement: increased max queued tasks default for MySQL from 100K t…
authored
208 # Default is 10000000 when using MySQL, and 1000 when using SQLite.
6a0daa4 Improvement: configurable max_queued_tasks. Defaults are 1000 for SQL…
gboudreau authored
209 # Setting a value here will overwrite those defaults.
210
03058f2 @gboudreau Improvement: increased max queued tasks default for MySQL from 100K t…
authored
211 # max_queued_tasks = 10000000
02eb818 @R3vXX Issue 68:
R3vXX authored
212
213 #### Memory Limit ###
214 ## Maximum amount of ram that Greyhole can consume while running
215 ## this can be higher than the global php.ini memory limit
216 ## if greyhole uses >95% of available memory while loading
217 ## data it will quit and throw an error in the logs
218 # Default is 128M
219 # Setting a value here will overwrite this default.
220 # It is NOT advisable to lower the memory limit.
221 # memory_limit = 128M
98265df @gboudreau Improvement: Now using cp instead of rsync by default for file copies
authored
222
223 #### Copy Method ####
224 # Possible values: cp, rsync
225 # cp is less CPU-intensive, and generally faster than rsync, which is still
226 # available for backward compatibility
227
228 # copy_method = cp
229
Something went wrong with that request. Please try again.