Brackup
view release on metacpan or search on metacpan
lib/Brackup/Root.pm view on Meta::CPAN
1;
__END__
=head1 NAME
Brackup::Root - describes the source directory (and options) for a backup
=head1 EXAMPLE
In your ~/.brackup.conf file:
[SOURCE:bradhome]
path = /home/bradfitz/
gpg_recipient = 5E1B3EC5
chunk_size = 64MB
ignore = ^\.thumbnails/
ignore = ^\.kde/share/thumbnails/
ignore = ^\.ee/(minis|icons|previews)/
ignore = ^build/
noatime = 1
=head1 CONFIG OPTIONS
=over
=item B<path>
The directory to backup (recursively)
=item B<gpg_recipient>
The public key signature to encrypt data with. See L<Brackup::Manual::Overview/"Using encryption">.
=item B<chunk_size>
In units of bytes, kB, MB, etc. The max size of a chunk to be stored
on the target. Files over this size are cut up into chunks of this
size or smaller. The default is 64 MB if not specified.
=item B<ignore>
Perl5 regular expression of files not to backup. You may have multiple ignore lines.
=item B<noatime>
If true, don't backup access times. They're kinda useless anyway, and
just make the *.brackup metafiles larger.
=item B<merge_files_under>
In units of bytes, kB, MB, etc. If files are under this size. By
default this feature is off (value 0), purely because it's new, but 1
kB is a recommended size, and will probably be the default in the
future. Set it to 0 to explicitly disable.
=item B<max_composite_chunk_size>
In units of bytes, kB, MB, etc. The maximum size of a composite
chunk, holding lots of little files. If this is too big, you'll waste
more space with future iterative backups updating files locked into
this chunk with unchanged chunks.
Recommended, and default value, is 1 MB.
=item B<smart_mp3_chunking>
Boolean parameter. Set to one of {on,yes,true,1} to make mp3 files
chunked along their metadata boundaries. If a file has both ID3v1 and
ID3v2 chunks, the file will be cut into three parts: two little ones
for the ID3 tags, and one big one for the music bytes.
=item B<inherit>
The name of another Brackup::Root section to inherit from i.e. to use
for any parameters that are not already defined in the current section.
The example above could also be written:
[SOURCE:defaults]
chunk_size = 64MB
noatime = 0
[SOURCE:bradhome]
inherit = defaults
path = /home/bradfitz/
gpg_recipient = 5E1B3EC5
ignore = ^\.thumbnails/
ignore = ^\.kde/share/thumbnails/
ignore = ^\.ee/(minis|icons|previews)/
ignore = ^build/
noatime = 1
=back
( run in 1.096 second using v1.01-cache-2.11-cpan-a49fcb8fa48 )