What is the best way to back up the system when upgrading the packages ?

Hi everyone.

I've recently rebuilt all the ports twice because I was trying to upgrade all my packages and got different conflicts around missing libraries and so on. I was mixing installation approaches (via ports/packages) that's why this is what I ended up with. I was trying to solve them but due to a lack of experience I decided to delete everything and install back from ports (not packages).

In order not to repeat myself, and of course out of curiosity, could you advise me how to back up my system so in case of some troubles I could roll back to the previous state?

Use dump/restore of /usr partition? Or do I need something else to include (or exclude)?

Thanks.
 
I'd use dump(8)/restore(8), yes. And you probably want to run them on /var too if you want to keep the package database (/var/db/pkg).

One more thing, when you have many ports to upgrade, it's usually easier and less time-consuming to delete everything (e.g. /usr/local) and reinstall from scratch.
 
Back
Top