Hi all,

We use the rsync site to locally mirror the Repositories there.
We only have PER300 & PE2950 Servers (all running Oracle Enterprise Linux 
5), so, is there a neat way of limiting the downloaded "stuff" to what is 
relevant to just those Server (and OS) types?

With the Firmware now moved in with OMSA 6.2, I've been testing the 
following rsync's:

To get just the dirs and the top-level files:
/usr/bin/rsync -dlptgoDzHv  \
  --dry-run \
  --exclude=/scripts/ \
  --exclude=/var/ \
  --exclude=/software/ \
  --exclude=/oracle/ \
  --exclude=/testing/ \
  --exclude=/dists/ \
  --exclude /firmware/ \
  --stats \
  rsync://linux.dell.com/repo/ /srv/yum/dell/

To get the OMSA 6.1 & 6.2 stuff, incl. Firmware but just for R300 & 2950:
/usr/bin/rsync -azHv  \
  --dry-run \
  --delete-during \
  --delete-excluded \
  --exclude OMSA_5* \
  --exclude OMSA_6.0* \
  --exclude suse* \
  --exclude rh4* \
  --exclude="*.src.rpm" \
  --exclude="*.deb" \
  --exclude=beta \
  --include=per300 \
  --include=pe2950 \
  --exclude="pe*" \
  --stats \
  rsync://linux.dell.com/repo/hardware /srv/yum/dell/hardware/

To get the community repository:
/usr/bin/rsync -azHv  \
  --dry-run \
  --delete-during \
  --delete-excluded \
  --stats \
  rsync://linux.dell.com/repo/community /srv/yum/dell/community/

Will I miss anything with the above? Is there a better way of doing this?
Any help/suggestions welcome...

Thanks and cheers,
dave
<td class='Content'>
<br>
-------------------------------------------------------------------------------------------<br>
Caversham Finance Limited, registered in England No 0785922 Registered 
office:<br> 5 Hercules Way, Leavesden Park, Watford WD25 7GS
<br>
Caversham Trading Limited, registered in England No 05396147 Registered 
office:<br> 5 Hercules Way, Leavesden Park, Watford WD25 7GS
<br>
BrightHouse Limited, registered in England No 06073794 Registered office:<br> 5 
Hercules Way, Leavesden Park, Watford WD25 7GS
</td>
_______________________________________________
Linux-PowerEdge mailing list
[email protected]
https://lists.us.dell.com/mailman/listinfo/linux-poweredge
Please read the FAQ at http://lists.us.dell.com/faq

Reply via email to