0

What is the best practice for system backup and restore on freebsd? Because I'm making many changes to the system I need to use quickest and easiest way to restore entire system to previous configuration (same was as is done for example on vmware snapshots) Does dump and restore is best way?

Thanks

3
  • 3
    There is nowhere near enough information in this question for evaluating "best", which of course depends from needs and circumstances. For example: Do you have ZFS for all of your filesystems, including the root filesystem? What version of FreeBSD is this? You need to edit your question and tell people things like this. Commented Sep 22, 2020 at 1:30
  • Consider configuration management tools. Commented Sep 30, 2020 at 9:47
  • Are the changes to the system, or to just one user? Commented Sep 30, 2020 at 9:48

2 Answers 2

1

As always, the FreeBSD Handbook should be your first resource for looking into these things.

The traditional UNIX® programs for backing up a file system are dump(8), which creates the backup, and restore(8), which restores the backup.

And this works great for many cases. Some people might just tar certain directories, such as /etc and /usr/local/etc and /usr/home along with any data directories they may have but this all varies user to user.

0

If you use ZFS you can just create filesystem snapshots

zfs snapshot zroot/whateverPool@yourSnapshotName 

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.