I am running DragonFlyBSD for quite some time now, but I never took the time to explore how Hammer2 really works concerning its snapshot abilities. This post is my first try at it and I intend it to be a little memo. First let’s gather some info about our mounted filesystems. $ mount | grep hammer2 serno/QM00005.s1d on / (hammer2, local) /dev/serno/QM00005.s1e@DATA on /build (hammer2, local) There are 2 different mountpoints interesting for us : / and /build.
This article has been inspired by this article and by the official documentation of Mozilla Firefox syncserver. After reading the article by Mirabelette, I thought it would be nice to have my own syncserver, the only difference is that: - I run DragonFlyBSD - I want a PostgreSQL database as I know how to make backups of it. That led me to two different steps : - building syncserver under DragonFlyBSD - making syncserver use PostgreSQL as its database instead of SQLite.