[Linux-PowerEdge] Mirror OMSA repository

Mike Hanby mhanby at uab.edu
Tue Jan 15 16:00:55 CST 2013


Here's the script I use in case it helps, it's successfully pulling the latest 7.2:

#!/bin/bash
distrib=dell
basedir=/repo
outputdir=$basedir/mirror/${distrib}
lockfile=$basedir/${distrib}-rsync_updates.lock

if [ -f ${lockfile} ]; then
    echo "Updates via rsync already running, lock file exists: ${lockfile}"
    exit 0
fi

if [ -d ${outputdir} ] ; then
    cd ${outputdir}
    touch ${lockfile}
    # This line will mirror the entire repo, which is over 30G
    su - repoadmin -c "rsync -aHz --delete-after --delete-excluded \
      linux.dell.com::repo/ ${outputdir}/"

# 20111024 - MJH - Dell's repo doesn't contain vital symlinks to create the .htaccess files
#  Create them if they don't exist (currently in community and OMSA_ directories
   for dir in community $(ls -d hardware/OMSA_*); do
     cd ${outputdir}/${dir}
     if [ ! -L ".htaccess" ] ; then ln -s _tools/htaccess_repo_topdir .htaccess; fi
     cd _tools
     if [ ! -L ".htaccess" ] ; then ln -s htaccess_tools .htaccess; fi
     cd ${outputdir}
   done

  /bin/rm -f ${lockfile}
  # Set the permissions of the files
  chmod -R go+r,go-w ${outputdir}
else
    echo "Target directory $outputdir not present."
fi

From: linux-poweredge-bounces at dell.com [mailto:linux-poweredge-bounces at dell.com] On Behalf Of jean-marc vizier
Sent: Monday, January 14, 2013 3:09 AM
To: linux-poweredge at dell.com
Subject: [Linux-PowerEdge] Mirror OMSA repository

Hello,
Since 2013/01/10 i can't rsync the OMSA repository. Is there something change on the server side ?
here is the error i get :

rsync error: error in socket IO (code 10) at clientserver.c(122) [Receiver=3.0.9]
The only thing i know : on this date the OMSA 7.2 was added.
If someone has a clue ?
Regards,
Jean-Marc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.us.dell.com/pipermail/linux-poweredge/attachments/20130115/777acbd3/attachment.html 


More information about the Linux-PowerEdge mailing list