summaryrefslogtreecommitdiffstats
path: root/cobbler/action_import.py
diff options
context:
space:
mode:
authormdehaan@mdehaan.rdu.redhat.com <>2006-12-05 11:04:38 -0500
committerJim Meyering <jim@meyering.net>2006-12-05 11:04:38 -0500
commit07679a31c782e11b5e47cbe36003f5de6fab123b (patch)
tree13ca7535323904956fb9b1181814fb97f08350c3 /cobbler/action_import.py
parent2ca5cfc6d8f03f622213f8aaadfc21ac5a7c1c82 (diff)
downloadthird_party-cobbler-07679a31c782e11b5e47cbe36003f5de6fab123b.tar.gz
third_party-cobbler-07679a31c782e11b5e47cbe36003f5de6fab123b.tar.xz
third_party-cobbler-07679a31c782e11b5e47cbe36003f5de6fab123b.zip
Prune rsync mirrors when importing.
Diffstat (limited to 'cobbler/action_import.py')
-rw-r--r--cobbler/action_import.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cobbler/action_import.py b/cobbler/action_import.py
index cbd8c36..a2d76f9 100644
--- a/cobbler/action_import.py
+++ b/cobbler/action_import.py
@@ -97,7 +97,7 @@ class Importer:
spacer = ""
if not self.mirror.startswith("rsync://"):
spacer = ' -e "ssh" '
- cmd = "rsync -a %s %s /var/www/cobbler/localmirror/%s --exclude */iso/*.iso --exclude=*/ppc/debug/* --exclude=*/ppc/os/* --exclude=*/ppc/tree/* --progress" % (spacer, self.mirror, self.mirror_name)
+ cmd = "rsync -a %s %s /var/www/cobbler/localmirror/%s --exclude-from=/etc/cobbler/rsync.exclude --delete --delete-excluded --progress" % (spacer, self.mirror, self.mirror_name)
sub_process.call(cmd,shell=True)
update_file = open(os.path.join(self.path,"update.sh"),"w+")
update_file.write("#!/bin/sh")