On 12/28/2012 12:48 PM, Matthaus Owens wrote:
Arnaud,
What flags are you passing to rsync? The README at
http://apt.puppetlabs.com/README.txt offers a sample rsync command
which includes the --copy-links flag. When I rsync using copy links,
my dists directory looks like:
total 0
drwxrwsr-x 7 matthaus staff 238 Dec 20 16:45 hardy
drwxrwsr-x 7 matthaus staff 238 Dec 27 11:27 lucid
drwxrwsr-x 7 matthaus staff 238 Dec 27 11:28 natty
drwxrwsr-x 7 matthaus staff 238 Dec 27 11:30 oneiric
drwxrwsr-x 7 matthaus staff 238 Dec 27 11:37 precise
drwxrwsr-x 7 matthaus staff 238 Dec 27 11:38 quantal
drwxrwsr-x 7 matthaus staff 238 Dec 27 11:33 sid
drwxrwsr-x 7 matthaus staff 238 Dec 27 11:34 squeeze
drwxrwsr-x 7 matthaus staff 238 Dec 27 11:39 stable
drwxrwsr-x 7 matthaus staff 238 Dec 27 11:39 testing
drwxrwsr-x 7 matthaus staff 238 Dec 27 11:31 unstable
drwxrwsr-x 7 matthaus staff 238 Dec 27 11:36 wheezy
Without --copy-links, the dists directory looks like what you have described.
The requirement for the --copy-links option is why I submitted Issue #18055 [1].
I am maintaining a few other mirrors like CentOS and Fedora EPEL and using this
flag on those mirrors would greatly increase the disk space and bandwidth
required by my mirrors. Both these mirrors use symlinks like 5 -> 5.8. Even the
puppetlabs mirror uses symlinks in the yum/el directory! The result is that the
puppetlabs yum mirror with --copy-links uses far more disk space and bandwidth
than necessary when used as recommended.
Initially I had mirrored puppetlabs using the same script that I used for my
other rsync mirrors, but due to the --copy-links requirement I have had to split
out just the puppetlabs apt mirror into a separate script. I am still using my
regular rsync script without --copy-links to mirror the puppetlabs/yum portion
to avoid wasting disk space and bandwidth.
[1] https://projects.puppetlabs.com/issues/18055
--
Konrad Scherer, Sr. Engineer, Linux Products Group, Wind River
direct 613-963-1342 fax 613-592-2283
--
You received this message because you are subscribed to the Google Groups "Puppet
Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.