# The config file is a perl script so take care to follow perl syntax.

# Location of the local mirror (fullpath)
$mirrordir="/home/repo/data/debmirror/debian";

# Output options
# Displays progress between file downloads.
# $verbose=0;
# Displays progress bars as files are downloaded.
$progress=1;
# Enables verbose debug output, including ftp protocol dump.
# $debug=0;

# Download options
$host="debian.csail.mit.edu";
$user="anonymous";
$passwd="anonymous@";
$remoteroot="debian";
# Currently, supported methods are ftp, http, and rsync.
$download_method="http";

@dists="bullseye";
# Defaults to "main,contrib,non-free,main/debian-installer".
@sections="main,contrib,non-free,main/debian-installer";
@arches="amd64";

# Never delete any files whose filenames match the regex.
# @ignores="";

# Never download any files whose filenames match the regex.
# @excludes=( '/Translation-.*', '/Translation-en.gz', '/language-pack-.*', '(thunderbird|firefox)-locale-.*', '/libreoffice-l10n.*', '/manpages-(\w{2}|\w{2}-extra|\w{2}-dev|\w{2}-extra-dev)_.*', '/myspell-(\w{2}|\w{2}-\w{2,3}|)[-_].*', '/unidic-mecab.*', '/libreoffice-dev-doc.*', '/thunderbird-dbg.*', '/firefox-dbg.*', '/texlive-fonts-extra.*',);

# Don't exclude any files whose filenames match the regex.
# @includes=( '/myspell-(nb|nn).*', '/libreoffice-l10n-(nb|nn).*', '(thunderbird|firefox)-locale-(nb|nn).*', '/language-pack-?(gnome|kde)-(no|en).*', '/Translation-(no|en\.|en_GB|en_US).*',);

# Never download any files whose Debian Section (games, doc, oldlibs, science, ...) match the regex.
#@excludes_deb_section=(comm, database, doc, education, electronics, embedded, games, gnome, 'gnu-r', gnustep, golang, graphics, hamradio, haskell, httpd, introspection, java, javascript, kde, lisp, mail, math, news, php, ruby, rust, science, sound, video, virtual, web, xfce, zope);

# Limit download to files whose Debian Priority (required, extra, optional, ...) match the regex.
#@limit_priority=(required, important, standard);

# With this option set, debmirror will not create the symlink from suite to codename.
# This is needed for example when mirroring archived Debian releases as they will all 
# have either "stable" or "oldstable" as suite in their Release files.
$omit_suite_symlinks=1;

# Don't re-download Packages and Sources files. Useful if you know they are up-to-date.
$skippackages=0;

# Allows to also mirror files from a number of directories that are not part of the package archive itself.
# @rsync_extra="doc,tools";

# Additionally download Translation-<lang>.bz2 files, which contain translations of package descriptions.
# Selection of specific translations is possible using the --include and --exclude options.
# The default is to download only the English file.
$i18n=0;

# Additionally download Contents.<arch>.gz files. Note that these files can be relatively big and 
# can change frequently, especially for the testing and unstable suites. Use of the available diff files 
# is strongly recommended (see the --diff option).
$getcontents=1;

# Include source in the mirror (default).
$do_source=0;

@di_dists="bullseye";
@di_archs="amd64";

# Save mirror state between runs; value sets validity of cache in days
$state_cache_days=0;

# Security/Sanity options
# Don't fail if the Release.gpg file is missing. If the file does exist, it is mirrored and verified, but any errors are ignored.
$ignore_release_gpg=0;
# Don't fail if the Release file is missing.
$ignore_release=0;
# Use checksums to determine if files on the local mirror that are the correct size actually have the correct content. 
# Not enabled by default, because it is too paranoid, and too slow.
$check_md5sums=0;
# Normally debmirror will report an error if any deb files or sources fail to download and refuse to update the meta data to an inconsistent mirror.
$ignore_small_errors=0;

# Clean up the local mirror before starting mirroring.
$cleanup=0;
# Clean up the local mirror but only after mirroring is complete and only if there was no error.
$post_cleanup=0;

# Specifies the timeout to use for network operations (either FTP or rsync).
$timeout=300;

# Rsync options
# Download at most number of files with each rsync call and then loop.
$rsync_batch=200;
# Specify alternative rsync options to be used.
# The most likely option to add is "--bwlimit=x" to avoid saturating the bandwidth of your link.
$rsync_options="-aIL --partial";
# Download at most max-batch number of files (and ignore rest).
$max_batch=0;


# FTP/HTTP options
$passive=0;
# $proxy="http://proxy:port/";

# Dry run
$dry_run=0;

# Don't keep diff files but use them
$diff_mode="use";

# The config file must return true or perl complains.
# Always copy this.
1;
