macro_man
Suspended / Banned
- Messages
- 276
- Name
- Sharif
- Edit My Images
- Yes
i have real issue with having to copy my images from the CF cards after a long days shoot. the part that get me is having to start the copy on a card wait for (or not) eject it and then repeat!!:bang:
the obvious solution is then to get a few card readers and start all in 1 go. definitely better but you still need to create the individual folders before dragging and dropping.
the Laziest options would be to write a bash script that will sequentially copy the cards to incremental folder names automatically.
I run ubuntu server on my file store server and i have tested it with multiple usb sticks. It works quite perferctly. so i have ordered 5 cheap CF card readers @£1.6 a piece
I intend to glue them together
when you run the script below it ask for a project name and the no. cards copied previously e.g. you have 15 cards to copy but only 5 card readers
While the script below is for non gui linux (ubuntu server), it can be easily adoptable ubuntu desktop, OSX AND in windows with cygwin installed.
Also you will need to install 'usbmount' for automouting of usb devices in the server environment
Linux SCRIPT:-
echo "Please enter your Project name:"
read name
echo Number of cards already copied ('0' for none):
read n
main='/my/projects/folder/' #root to directory where the project will be saved
mkdir $main/$name #make client
var=(`find /media/usb* -name DCIM`) #serachs all dir starting with 'usb' for DCIM exactly and pipes t$
n2=${#var[*]}
if [[ $n2 == '0' ]]; #exit condition
then
echo no DCIM folders found on usb
exit
else
for i in $(find /media/usb* -name DCIM);
do
(( n += 1 ))
echo copying $n of $n2 cards
mkdir /$main/$name/$n/
cp -ra $i/* /$main/$name/$n/
done
fi
the obvious solution is then to get a few card readers and start all in 1 go. definitely better but you still need to create the individual folders before dragging and dropping.
the Laziest options would be to write a bash script that will sequentially copy the cards to incremental folder names automatically.
I run ubuntu server on my file store server and i have tested it with multiple usb sticks. It works quite perferctly. so i have ordered 5 cheap CF card readers @£1.6 a piece
I intend to glue them together
when you run the script below it ask for a project name and the no. cards copied previously e.g. you have 15 cards to copy but only 5 card readers
While the script below is for non gui linux (ubuntu server), it can be easily adoptable ubuntu desktop, OSX AND in windows with cygwin installed.
Also you will need to install 'usbmount' for automouting of usb devices in the server environment
Linux SCRIPT:-
echo "Please enter your Project name:"
read name
echo Number of cards already copied ('0' for none):
read n
main='/my/projects/folder/' #root to directory where the project will be saved
mkdir $main/$name #make client
var=(`find /media/usb* -name DCIM`) #serachs all dir starting with 'usb' for DCIM exactly and pipes t$
n2=${#var[*]}
if [[ $n2 == '0' ]]; #exit condition
then
echo no DCIM folders found on usb
exit
else
for i in $(find /media/usb* -name DCIM);
do
(( n += 1 ))
echo copying $n of $n2 cards
mkdir /$main/$name/$n/
cp -ra $i/* /$main/$name/$n/
done
fi
thats site was my main ref....