VCS as a rollback system?

Discussion in 'all things UNIX' started by Gullible Jones, Oct 27, 2012.

Thread Status:
Not open for further replies.
  1. Just wondering, would it be possible to use a VCS such as Subversion - set up in a Linux system's root directory - as a way of rolling back changes? e.g. you make commits before upgrades, and if something breaks you can switch back to the last good commit.

    I'm guessing there's a very good reason I've never heard of anyone doing this? Would handling 3+ GB of binary files make things prohibitively slow, even with binary diffs?
  2. And N/M, the reason is that rsync does this better.
  3. mack_guy911

    mack_guy911 Registered Member

    Mar 21, 2007
  4. Ocky

    Ocky Registered Member

    May 6, 2006
    George, S.Africa
    wajig can backup packages before they are upgraded. (It's in the repos)

    Upgrade all of the installed packages:
    $ wajig upgrade
    -b backup packages about to be upgraded onto some default directory
    --backup=DIR backup packages about to be upgraded onto a given directory
    -n --noauth skip the authentication verification prompt before the upgrade

    Run wajig --backup=<backup directory> upgrade so that in case of trouble, you can run dpkg --install <DEB file> inside the directories.


    Edit: (It uses dpkg-repack - see quote below). So even if you have nothing in /var/cache/apt/archives/ due to regularly using apt-get clean, wajig will repackage an installed package that is to be upgraded and place it in a time-stamped folder, before the upgrade takes place.

    Last edited: Oct 30, 2012
Thread Status:
Not open for further replies.