References
Original script
http://www.unix.com/shell-programming-scripting/143304-create-repositories-dump-filetype.html
Read part of the filename
http://www.linuxquestions.org/questions/linux-newbie-8/shell-script-to-read-part-of-filename-652549/
#!/bin/bash
for dump in *.dump
do
repo=$( basename $dump '-201210012330.svn.dump' )
echo svnadmin create $repo
( echo "svnadmin load $repo < /var/tmp/201210012330/$dump" && echo "$(date) $repo restore done" ) &
done
No comments:
Post a Comment