Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 19th May 2006, 12:30 AM
shams Offline
Registered User
 
Join Date: Oct 2004
Posts: 881
Exclamation how to download only newer updates with rsync?

hi,
i have local repo of fc5 updates, i use rsync to get the updates from the fedora repos, the problem is the updates contain two versions of some packages which are the newer and old updates, it is defficult to add each the old file to the exclude rules of rsync, is there any way to tell rsync to download the newer version of updates and ignore the older ones from the fedora server?
__________________
Want to share my experiences with other newbies:
Fedora For Newbies
Some Debian Tips
Reply With Quote
  #2  
Old 19th May 2006, 10:53 PM
Renich's Avatar
Renich Offline
Registered User
 
Join Date: May 2005
Location: Guadalajara, Jalisco, México
Age: 32
Posts: 145
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/
Reply With Quote
Reply

Tags
download, newer, rsync, updates

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
download fedora 9 using rsync (to fix corrupted download) bingoUV Using Fedora 11 1st June 2008 10:00 AM


Current GMT-time: 15:29 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat