From the USB install;
dd if=/dev/{ubuntuDrivePath} of={someOtherDrive}/{backupFile}.img
This creates a 1 to 1 representation of your drive. For example, dd if=/dev/sda of=/media/data/backups/workstation.img
You will of course need to use an additional drive to store your backup.To restore, boot into USB again, and execute:
dd if={yourBackup} of=/dev/{ubuntuDrivePath}What I'm really looking for is the sort of upgrade/rollback process I'm used to creating for my production apps. One-button upgrade, one-button rollback.
Looks like Ubuntu isn't there yet. I suppose the easy thing is just to get another disk, clone my existing setup, and do the upgrade. If I don't like it, I'll just swap in the backup disk.
Regardless, it's easy to not lose your setup, run the latest OS AND not do in-place upgrades.
Just put /home on a separate partition and you're done. Use dpkg to make a list and restore a list of applications (same with repos). A few files to backup and a few minutes to wait for the apps to redownload. Completely clean system. Same apps. All the while /home was untouched.
#apt-get -f missing
fixes many of these post-upgrade problems. YMMV!