Well, I have a repo too... and it is easy to add dirs... I'll show you my files. You should really read the man pages of rsync
[renich@mipc ~] # man rsync
daily cron file
Code:
#!/bin/sh
function update_repo() {
echo Update started at: `date`
rsync -a --partial --stats --delete-before --delete-excluded --force --filter='m
erge /root/.fedora-repo_rsync_rules' rsync://mirrors.kernel.org/fedora/ /var/www
/html/fedora/
echo Update ended at at: `date`
echo
exit 0
} > /root/fedora-repo_updates.log
update_repo
exit 0;
.fedora-repo_rsync_rules file
Code:
- 3/
- 2/
- 1/
- i386debug/
- debug/
- development/
- testing/
- test/
- x86_64/
- ppc/