Building in hotplug with Ivman


Article from Issue 71/2006

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

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.

  • Backup Solutions

    Backup strategies in IT are essential and expensive in terms of planning and administration, but individuals have simpler solutions. We look at five backup solutions for the desktop.

comments powered by Disqus

Direct Download

Read full article as PDF:

Linux_Hotplug_System_Ivman.pdf (127.70 kB)