ohh one-by-one sonds hard to me ... :-)
For others with an similar problem, here is my script used to convert
"unique"-Export to an "non-unique"-Import:
#/bin/bash
DIR="./export/20100830/repositories/plugins-snapshots-local/"
if [ ! -d /tmp/export ]; then
mkdir /tmp/export
fi
cd $DIR
cc=`find . -type d -name "*-SNAPSHOT" | wc -l | cut -d " " -f 2`
c=0
for i in `find . -type d -name "*-SNAPSHOT"`; do
DD=$i
TS=`ls -ltr $i | tail -n 1 | egrep -o "[0-9]{8}\.[0-9]{6}\-[0-9]+";`
if [ -n "$TS" ]; then
mkdir -p /tmp/export/$DD
cp $DD/*$TS* /tmp/export/$DD 2>/dev/null
for j in `ls /tmp/export/$DD`; do
NN=`echo $j | sed s/$TS/SNAPSHOT/`
mv /tmp/export/$DD/$j /tmp/export/$DD/$NN
done
fi
c=$((c+1))
if [ $c -gt 100 ]; then
echo "$c/$cc"
c=0
fi
done
--
View this message in context:
http://forums.jfrog.org/convert-formerly-unique-snapshot-repository-to-a-non-unique-snapshot-repository-tp5461423p5481704.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:
Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users