How to find files added or changed since installation

I'm trying to backup all the files that were added or changed since FreeBSD was installed. Should I be able to do that simply using the find(1) command ? I'm assuming that all the files that are part of the base installation have the same datestamp.
 
mtree(8) is the tool you are looking for. You've described basically the whole reason for its existence (fighting files that have changed, been added, or removed).

You run it once to generate a listing of hashes for all files. Then, everytime it's run after that, the gates are compared to find the differences.

It's used by the installation and upgrade tools in FreeBSD. There are hash databases somewhere in /var, I believe.
 
Back
Top