1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Using ZFS to rollback to clean installation?

Discussion in 'Storage' started by ultrakomm, Nov 24, 2012.

  1. ultrakomm

    ultrakomm New Member

    Messages:
    7
    Thanks Received:
    0
    Hi!

    When I first installed my FreeBSD system, I created a ZFS snapshot of the clean installation. I then installed a couple of applications and created a few files, and then attempted to rollback to the clean installation. But it did not work. The applications I installed are still there (nano for example).

    Is there a way to remove all new files that have been created, as well as rolling back the files that have been modified? A complete revert to the earlier state, pretty much?

    Thanks in advance.
     
  2. bbzz

    bbzz Member

    Messages:
    868
    Thanks Received:
    123
    How did you create snapshots, and how did you rollback? How did you install FreeBSD?

    Without being concrete about steps you did, it's hard to give a concrete answer.
     
  3. ultrakomm

    ultrakomm New Member

    Messages:
    7
    Thanks Received:
    0
    Sorry. I was in a hurry.

    I installed FreeBSD (ZFS root) following this guide: http://forums.freebsd.org/showthread.php?t=31557. I then created a snapshot using this command: zfs snapshot zroot@clean I then attempted to rollback using a zfs rollback zroot@clean

    Maybe I'm doing something terribly wrong?
     
  4. bbzz

    bbzz Member

    Messages:
    868
    Thanks Received:
    123
    Those are the commands, if you have only one filesystem, i.e. everything under /.
    Otherwise check man pages and -r switch.