Building in hotplug with Ivman

CUSTOM PLUG

Article from Issue 71/2006
Author(s):

Better knowledge of the Linux hotplug system opens the door to to innovation and automation. We’ll show you a custom backup solution for laptop computers.

Hotplugging is often considered an unfathomable feature that isn’t especially responsive to the idiosyncrasies of the user. However, it may be easier than you think to build your own custom solution around the components of the Linux hotplug system. This article looks at how you can use Ivman, a generic handler for Hardware Abstraction Layer (HAL) events, to create a custom hotplug solution. The solution described in this article addresses a common problem for users with portable computers. Although all computers need regular backups, a cron-based cyclical backup scheme is not especially effective for a laptop. The battery might be flat when the backup is due to start, or you might be hundreds of miles away from your server, tape drive, or backup disk.

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Hotplug Hacks Intro

    Hotplugging is invisible and automatic – if you want it to be. But a close look at the Linux hotplug system reveals interesting opportunities for customization.

  • Charly's Column

    The principle behind Rsnapshot is nothing new: use Rsync and SSH to back up files to another computer. What sets Rsnapshot apart is its simple setup and its rich collection of features.

  • Udev

    After three years of hanging around on the sidelines, Udev has finally ousted the legacy Dev-FS system. We take a look under the hood at the Udev device management system inside your Linux system.

  • Charly's Column: Backup2l

    At his cozy home, sys admin Charly has always used rsnapshot to back up his data. Although things will be staying this way for server backups, he has found something more manageable for backing up the Kühnast family's desktop PCs.

  • Snapshot Tools

    Experts agree that you should keep a copy of your data, but restoring from incremental backups takes time and sometimes doesn't work as expected. Alternatively, you can capture your data in a snapshot. Read on for a review of some leading Linux snapshot tools.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News