apt-clone
Backup and restore installed package states
TLDR
Clone the package state of the current system into a directory
SYNOPSIS
apt-clone command [options]
DESCRIPTION
apt-clone creates and restores backups of the installed package state on Debian-based systems. It captures information about installed packages, their versions, and repository sources, enabling system migration or recovery.
Clone files are compressed tar archives containing package lists and APT source configurations. This allows replicating a system's software configuration on another machine or after a fresh installation.
PARAMETERS
--destination path
Specify the output location for clone or restore operations--with-dpkg-repack
Include package files for packages not available in repositories--with-dpkg-status
Include the full dpkg status file
SUBCOMMANDS
clone
Create a backup of the current package staterestore
Restore packages from a clone fileinfo
Display information about a clone file
CAVEATS
Restoring a clone on a different release version may fail due to package incompatibilities. The restore process requires root privileges and an active internet connection to download packages. Packages not available in configured repositories will be skipped unless --with-dpkg-repack was used during cloning.
