home Mail List
Info
Info
Meetings
Goals
Upcoming
Projects
FAQ
Security
Links

[Date Prev][Date Next] [Chronological] [Thread] [Top]

[NMLUG] backup storage trade



here's a test I ran on doing that for photos from my Canon 10D:

find photo/100canon/ -name "*jpg" -maxdepth 1 | head -n 4 | sed 
"s/.*\(img.*\)/echo \1 | mutt havoc@harrisdev.com -s \1 -a &/" | bash

that just sends the first 4 images from my photo/100canon directory. 
remove the head -n 4 statement to send them all.

Because I use KimDaBa, there is a ThumbNails directory I didn't want to 
pick up, which was the reason for the -maxdepth 1 option.

Canon stores their images in a series of directories like:
100canon
101canon
102canon
etc.

To process the whole directory structure, with the images sorted, I'd use:

find /photo -name "*jpg" -maxdepth 2 | sort | sed "s/.*\(img.*\)/echo \1 
| mutt havoc@harrisdev.com -s \1 -a &/" | bash

Your command will look something like:

find /your/photo/path -name "*jpg" -maxdepth 2 | sort | sed 
"s/.*\(DCP.*\)/echo \1 | mutt gonzales@thuntek.net -s \1 -a &/" | bash

I'd put the head -n 5 command in for testing and run a few tests before 
I turned it lose on the world.  you may also want to put in a sleep 1 or 
sleep 5 as a way of putting a speed governor on it.

report back on results.

jody

bg wrote:
> This email got me thinking... again. :)
> 
> I have about 3000 photos I've taken with my digital camera. They're all
> numbered from DCP0001 to DCP3120, and are all roughly 1024*768 pixels
> apiece. I'd like to find (or write) a script that sends each - in
> individual emails, with the file name as the email's subject - to my
> gmail and yahoo accounts. Since the storage required is >1GB, I wouldn't
> be able to send all of them to one account.
> 
> I'm not sure Gmail's bandwidth would allow for this, but why offer 1GB
> of storage if they can't handle it?
> 
> Any idea how to do this?


-- 
http://www.RealizationSystems.com/ -- start communicating
http://www.GalacticSlacker.com/ -- read it and weep
http://www.NMPerspective.com/ -- a Southwest Perspective



Please send sugestions and comments to webmaster@nmlug.org.
Valid XHTML 1.1! Valid CSS! Powered by Debian Powered by Apache