Created
November 18, 2010 13:49
-
-
Save samuelspiza/704990 to your computer and use it in GitHub Desktop.
Example configuration for uniload.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[uniload] | |
# WARNING!!! | |
# uniload overrides files in the given path without warning. Test your | |
# configuration first by running uniload in test mode which gives a preview | |
# without any actual operations on the filesystem. | |
# | |
# Run testmode by starting uniload with option "-t": | |
# | |
# $ uniload.py -t | |
# | |
# To run uniload, path has to be uncommented and it must contain an existing | |
# directory. | |
;path = /home/user/uni | |
;log = on | |
;log.path = /var/log/uniload.log | |
;moodle.defaultdir = stuff | |
[moodle-credentials] | |
username = abcdef |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Moodle Modules | |
# ============== | |
# | |
# The name of the section consists of the key word "moodle-module" a space | |
# charakter and the name of the module in quotation marks. The name is also the | |
# name of the directory that will be created for this module's files. | |
# | |
# page This option must be available for every module. It must | |
# contain the url of the main page in moodle. | |
# whitelist If whitelist is on, only files that are matched by overrides | |
# will be downloaded. If whitelist isn't specified for a module | |
# it is interpreted as off. | |
# | |
# Each Moodle module can have multiple overrides. Overrides consist of up to | |
# three options that start with the same two digits. These three options are | |
# possible: | |
# | |
# remote Excludes every file that does not lie in the given | |
# subdirectory. If it is omitted, every file is matched. | |
# regexp All filenames are matched against the given regular expression. | |
# That which match are also matches for the override | |
# folder Specifies the new subdirectory for the matched files. If folder | |
# is ommited matched files will *NOT* be downloaded. | |
# | |
# If remote and regexp are used together, both conditions have to be met by the | |
# file. | |
;[moodle-module "foo"] | |
;page = http://moodle.uni.de/course/view.php?id=1234 | |
;whitelist = off | |
;00remote = Folien | |
;00folder = folien | |
;01remote = Uebungszettel | |
;01folder = uebung | |
;[moodle-module "bar"] | |
;page = http://moodle.uni.de/course/view.php?id=1235 | |
;whitelist = off | |
;00remote = Vorlesung/WS2010 | |
;00regexp = (?:UEbung|Uebung|uebung) | |
;00folder = uebung | |
;01remote = Vorlesung/WS2010 | |
;01folder = folien |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment