Backup and restore configurations from ports

Hi there

To configure all my installed and build ports from /usr/ports has taken several hours. How I could backup these settings and restore them on worst case this box or to another computers?
 
if I used the command:
[CMD=]bpkg -B[/CMD]
when I make a fresh installation what are the steps required so that I restore all the ports in the backup?

Thanks
 
You probably won't be able to install everything with single command, because you probably don't have custom FreeBSD metaport, and thus custom packages.

You will need to pkg_add packages from /var/tmp/bpkg manually.

For example
Code:
# cd /var/tmp/bpkg
# pkg_add xorg-*
# pkg_add libreoffice-*
...
and so on.

I added * where package version and archive extension is expected. Dependencies will be installed automatically.
 
Thanks very much graudeejs :)

yes I'm using UFS and your other post about the dump & restore is amazing I'll give it a try ^^

Well done!

Draco
 
Back
Top