Create backup of pkg database.

# pkg backup -d pkg.sql

 
Move backup to 2nd server.

# cd /var/db/pkg # scp pkg.sql 192.168.100.178:/var/db/pkg


On 2nd server  perform following commands:

# cd /var/db/pkg # pkg backup -r pkg.sql # pkg upgrade -f

Restore is Done.