[Digikam-users] Moving files outside digikam / digikam automation

Leo Noordhuizen leo.noordhuizen at gmail.com
Sun Feb 5 09:16:46 GMT 2012


I use the following shell script to move pictures from 'some' location
(mostly the memory card) into their directories AND to a backup directory.
(NB: this is a very basic script which could use some errorchecking, but
until now it has been working great.)
---------------------------------------------------------------------------------------------------------
#!/bin/bash

# Copy binary image files from current directory to backup directory and
# move the binary image files to the new tree
# The directorystructure and filename is based on the date the original
# picture was taken and has the following format:
# <backupdirectory>/YYYY/YYMM/YYYYMMDD/YYYYMMDD_<original name>
#  and
# <picturedirectory>/YYYY/YYMM/YYYYMMDD/YYYYMMDD_<original name>
#

# Copy *.JPG & *.CR2 files from current directory to backup
exiftool -o /media/U2-2/InputBackup/ '-FileName<DateTimeOriginal' \
      -d /media/U2-2/InputBackup/%Y/%Y%m/%Y%m%d/%Y%m%d_%%f.%%e .


# Move *.JPG en *.CR2 files from current naar AAAA_Input directory
exiftool '-FileName<DateTimeOriginal' \
      -d
/home/lcn/Pictures/Pictures/AAAA_Inbox/%Y/%Y%m/%Y%m%d/%Y%m%d_%%f.%%e .
-----------------------------------------------------------------

Leo Noordhuizen

On Sat, Feb 4, 2012 at 10:10 PM, Ben Staude <sben1783 at yahoo.de> wrote:

> 14:49 Samstag, 4.Februar 2012 Peter Albrecht <peter at crazymonkeys.de> wrote
>
>
> > On 02.02.2012 00:07, Marie-Noëlle Augendre wrote:
> > > 2012/2/1 Ben Staude <sben1783 at yahoo.de>
> > >> The process of importing, for me, always happens when there's
> absolutely no
> > >> time for nothing because I suddenly need the camera with an empty
> card to
> > >> leave for the weekend or holiday. This always is the last thing that
> comes
> > >> into my mind before leaving:)
>
> > > I find this very strange, as importing pictures is the first thing I do
> > > when I come back home; even if I have not enough time to sort all the
> > > pictures I've taken, I usually like to browse them at least to roughly
> see
> > > if 'the hunitng was good'. ;-)
> >
> > My reason for "importing pictures as soon as you are back home":
> > This gives you a first backup of your precious pictures,
> > since after the import they exist in two places: Your PC and
> > your memory card.
>
> I remove the pictures from the memory card just after download (see
> above), but in
> parallel,  I do start a backup from my PC to the external usb drive. I
> dislike the idea
> of having only one copy of the pictures.
> Anyway, like Marie-Noëlle: there's no time for splitting the images into
> their final
> directories at download time:)
>
> Thanks & regards
> Ben
> _______________________________________________
> Digikam-users mailing list
> Digikam-users at kde.org
> https://mail.kde.org/mailman/listinfo/digikam-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/digikam-users/attachments/20120205/a30cddaf/attachment.html>


More information about the Digikam-users mailing list