apt-clone

In natty we got a new tool called “apt-clone”. Its a commandline application that can be used to clone the packages state of a system and restore it on another system. It will save the full state (sources.list, packages/versions installed, auto-installed inforrmation) and optionally using dpkg-repack in order to save not/no-longer downloadable package (like debs that got installed manually via e.g. gdebi or dpkg -i). The file is pretty small because it just stores references to the files in the archive. One nice feature of the restore is that it can be applied to a different root directory (creating a chroot). I use this to reproduce upgrade issues and its really handy for this. Whats missing currently is modified conffiles detection, but there is some work on this in trunk.

About these ads

6 Responses to “apt-clone”

  1. Bilal Akhtar Says:

    Nice! Looking forward to using this tool!

  2. Anders F Björklund Says:

    Not to be confused with “apt-clone” (apt-get using ZFS snapshots):

    http://nexenta.org/attachments/download/80/Nexenta_debconf.pdf

  3. foo Says:

    Can we get apt-clone and apt-btrfs-snapshot in Debian already?

  4. Fabian Rodriguez Says:

    Thanks for sharing, Michael. That’s great news. Do you think having an option to have the actual packages neatly put together in a single archive would be feasible ? Seems like the only missing piece for this to be a clean way to replicate an online system to offline LIveCD installs.

    I have yet to find a tool that will do this in a simple, elegant manner.

  5. cpcbegin Says:

    Is there any good manual to use apt-clone?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.

%d bloggers like this: