Re: Automated Synchronization for pendrives

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Aug 13, 2009 at 8:01 AM, Rishi Agrawal<rishi.b.agrawal@xxxxxxxxx> wrote:
> Hello All,
>
> I was planning to write a program which will update a folder in my pen drive
> whenever I insert one.
>
> The algo goes like this:
>
> --> I insert a pendrive
> --> The program comes to know that a pen drive has been inserted
> --> Program asks the user "do you want to use this pendrive as a backup
> tool"
> --> If I enter "yes" it asks the paths of the folders i want to make backup
> for
> --> it updates the pendrive
> --> Next time whenever I insert the pendrive the program asks "this pendrive
> has been used for creating backups, do you want to synchronize your folders
> now"
>
>
> Basically the problem is to find that a pen drive has been inserted in on of
> the ports ?? rest things can be taken care off by a daemon process sleeping
> on the event "a pendrive has been inserted".
>
> Any clues how to find this out ??
>
>
> Or any tool which does something similar ?
> --
> Regards,
> Rishi B. Agrawal

Rishi,

hald is one option.  KDE and gnome both use it for triggering their
file browsers to open upon thumb drive insertion.

I don't know if basic init 3 level systems have hald running or not.

Greg
-- 
Greg Freemyer
Head of EDD Tape Extraction and Processing team
Litigation Triage Solutions Specialist
http://www.linkedin.com/in/gregfreemyer
Preservation and Forensic processing of Exchange Repositories White Paper -
<http://www.norcrossgroup.com/forms/whitepapers/tng_whitepaper_fpe.html>

The Norcross Group
The Intersection of Evidence & Technology
http://www.norcrossgroup.com

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux