Re: Backing up suggestions?
- From: Vahis <waxborg@xxxxxxxxxxxxxxxx>
- Date: Mon, 21 Aug 2006 17:31:58 +0300
David Bolt wrote:
On Sun, 20 Aug 2006, houghi <houghi@xxxxxxxxxxxxxxxxxx> wrote:-
David Bolt wrote:
There is quite a bit of self-discipline required for this back-up regime
because it means that as soon as I have copied the pictures from the
memory card, I have to ensure I have updated all my back-ups before I
can wipe the card and put it back in the camera.
This is where scripts get ito place very nicely.
Write a script called 'photobackup' that does all this for you. Using
zenity or kdialog, you can let the backup do its work and pop-up if you
need to interact, like connect the other PC, put the second or first dvd
in and so on.
I already have a few scripts that do a lot of the work for me. The part
that imposes the self-discipline is the bit between copying the pictures
from the memory card and making the backups. It's this point where I go
through checking each individual picture and renaming them to something
more recognisable than just the default img_1234.jpg[0].
After all the pictures have been renamed, I use another script that
first checks the USB drive is present before starting the copying
process[1]. It is only after this process is completed without errors
does the script delete the images on the memory card.
I once studied briefly (looked too complex for me to do though)
kind of "autorunning" USB drives.
When a USB device is plugged in the hotplug daemon will call a
script by the same name somewhere, I can't remember where
(etc/hotplug?)
Your own lines can be added to this script. You could play sounds
or sync files or whatever.
I'll try to find something about that stuff here :)
<Snippety>
Instead of kdialog, you can use zenity. Instead of cp, you can use rsync
and instead of taking my example, you can write something usefull. ;-)
For this job, I'd prefer not to use the GUI. Checking and sorting
pictures does require use of a GUI but, for the actual renaming and
archiving, I use a text console because it feels quicker.
Anyway, my present routine follows a nice sequence:
1, insert memory card into card reader;
2, plug in USB drive;
3, use script to copy files for temporary location ready for sorting;
The autorun thing goes here.
Vahis
--
Sometimes I reply to top posters. Seldom. And usually just once.
http://waxborg.servepics.com/English/Linux/SUSE.10.1/suse10.1.html
SUSE Linux 10.1 Suomi:
http://waxborg.servepics.com/Linux/10.1/suse-10.1.html
.
- Follow-Ups:
- Re: Backing up suggestions?
- From: Vahis
- Re: Backing up suggestions?
- References:
- Backing up suggestions?
- From: Bob Adams
- Re: Backing up suggestions?
- From: orrin1933-usenet
- Re: Backing up suggestions?
- From: David Bolt
- Re: Backing up suggestions?
- From: houghi
- Re: Backing up suggestions?
- From: David Bolt
- Backing up suggestions?
- Prev by Date: KMail: Inbox messages since July 3rd have disappeared!
- Next by Date: Updates
- Previous by thread: Re: bash script example for renaming files (Was: Re: Backing up suggestions?)
- Next by thread: Re: Backing up suggestions?
- Index(es):
Relevant Pages
|