From 69d84cc6edab249037522d00d3685939dc38495a Mon Sep 17 00:00:00 2001 From: Joshua Ismael Haase Hernández Date: Sun, 10 Apr 2011 17:59:47 -0500 Subject: Firs main deliver --- main.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 main.sh (limited to 'main.sh') diff --git a/main.sh b/main.sh new file mode 100644 index 0000000..ac504a4 --- /dev/null +++ b/main.sh @@ -0,0 +1,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}/ \ No newline at end of file -- cgit v1.2.3-54-g00ecf