summaryrefslogtreecommitdiff
path: root/main.sh
blob: ac504a4e1bf4eaccd499395a8aa67457dd7808dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/python
# -*- coding: utf-8 -*-

source config.sh

function mkrsexclude {
    error=1
    while ${error}; do
	run_python_cmd "filter.py"
	error=$?
    done
}

msg "Cleaning $tempdir"
stdnull "rm -r $tempdir/* "

msg "Generating exclude list for rsync"
mkrsexclude

msg "Syncing repo files without delete"
${rsync_update_command} --exclude-from=${rsync_blacklist} ${mirror}${mirropath}/