D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] backup mirror/swap setup

 




> On 9 Feb 2016, at 13:46, Tom <madtom1999@xxxxxxxxxxxxxx> wrote:
> 
> One of my backup drives has just gone dead. Going to get a pair of USB drives with 
> the intention of somehow exposing the two as one so that I can take one away for 
> safe keeping and then, when I plug it in it the current active one will be 
> mirrored to it and then unmounted for taking out for safe keeping.
> Anyone seen any scripts around to allow me to do this with relative ease?
> Tom te tom te tom
> 
> -- 
> The Mailing List for the Devon & Cornwall LUG
> http://mailman.dclug.org.uk/listinfo/list
> FAQ: http://www.dcglug.org.uk/listfaq


http://unix.stackexchange.com/questions/65891/how-to-execute-a-shellscript-when-i-plug-in-a-usb-device

write a script to update a txt file with the location of backup targets. 
the backup script/service (see lsyncd below) runs the backup uses the locations 
specified in the previously updated file. 
when the device is unplugged do the inverse are remove the entry from the text file. 

https://github.com/axkibe/lsyncd
http://superuser.com/questions/317820/linux-continuously-synchronize-files-one-way

Let me know if this works out in practice. 
-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq