Well, I'm the sort of newbie who seems to enjoy breaking his own installation of FreeBSD, and then spending the next few hours making it work again. While I've learned a few things from doing this over and over, I've decided that it's now a good time to come up with reliable strategy for recovering from my own mistakes, that way I can hopefully spend my time learning more productive things with FreeBSD.
At anyrate, I came across the below thread, which seems to provide a backup scenario which someone at my skill level should be able to handle. Also, I've read about using mksnap_ffs to create snapshots, but the process of using the snapshots to recover missing or corrupted data seems a little bit murky to me at this point, so I'm leaning towards the method outlined in the below link.
However, there is something I don't understand about the below set of commands, which I've copied and pasted from the above thread.
It appears that the above set of commands will create back up directories for /boot and /usr, but how come there does not appear to be a command listed to create a back up directory for /etc? Also, would the above commands referencing /usr automatically create a back of the files located under /usr/local/etc/X11/xorg.conf.d/nvidia-conf?
At anyrate, I came across the below thread, which seems to provide a backup scenario which someone at my skill level should be able to handle. Also, I've read about using mksnap_ffs to create snapshots, but the process of using the snapshots to recover missing or corrupted data seems a little bit murky to me at this point, so I'm leaning towards the method outlined in the below link.
Hi I'm very new to FreeBSD. Anyone know how I would go about doing a full system backup of FreeBSD that I could keep to boot from and restore my system in case my install gets corrupted?
I have been looking for what utilities to use and the steps to use them to create an exact replica of my FreeBSD system in case I need to restore to new hardware.
I have the "data" backed up already by other means, but I would like to know if there is a way to create an image of the current system that could be restore in the event of a disaster.
Disk space is not a concern, I have terabytes of disk space...
I have been looking for what utilities to use and the steps to use them to create an exact replica of my FreeBSD system in case I need to restore to new hardware.
I have the "data" backed up already by other means, but I would like to know if there is a way to create an image of the current system that could be restore in the event of a disaster.
Disk space is not a concern, I have terabytes of disk space...
However, there is something I don't understand about the below set of commands, which I've copied and pasted from the above thread.
Code:
mkdir -p /backup/boot
mkdir -p /backup/usr/local
rsync -a /boot/loader.conf /backup/boot
rsync -a /etc /backup
rsync -a /usr/local/etc /backup/usr/local
rsync -a /usr/home /backup/usr
It appears that the above set of commands will create back up directories for /boot and /usr, but how come there does not appear to be a command listed to create a back up directory for /etc? Also, would the above commands referencing /usr automatically create a back of the files located under /usr/local/etc/X11/xorg.conf.d/nvidia-conf?