Hi All,
I'm still learning my way round FreeNAS in my test VM. I'm currently making sure I know what to do if i have to recover the system from some kind of failure. Reading the forum, I'm aware that FreeNAS makes an automatic backup of the config db on the system dataset every morning at 03:45, which is excellent. So, I'm trying to work out how I would recover that file if I had to rebuild the boot drive, and recover from the system dataset backup db.
SSH'ing in, I can see the following from zfs /all:
So, I think that the backup db's are in "TestVolume1/.system/configs-c0708eef149b49a396f66530a6f1b80a", however for the life of me I can't work out how to access that area and copy / move / see the db file there! I'm very comfortable using a DOS command prompt, and Powershell to a lesser extent, but the FreeBSD commands and my understanding of the system are still quite lacking, and google / forum search isn't turning up the right results - probably as I'm not using the right terminology for FreeBSD.
I think that I cannot access that directory because it is under a "legacy" mountpoint, but I can't work out how to mount it, let alone copy the db either to the right place on the FreeNAS boot drive/pool, or download it to my client PC to then upload it using the GUI. Maybe I can't mount it as its in use by the system, as my system is up and running OK? Possibly clutching at straws here...!
I'm guessing this is actually a really easy thing to do, but I just can't work out the right commands. I'd be really grateful if someone could help point me in the right direction!! Many TIA.
I'm still learning my way round FreeNAS in my test VM. I'm currently making sure I know what to do if i have to recover the system from some kind of failure. Reading the forum, I'm aware that FreeNAS makes an automatic backup of the config db on the system dataset every morning at 03:45, which is excellent. So, I'm trying to work out how I would recover that file if I had to rebuild the boot drive, and recover from the system dataset backup db.
SSH'ing in, I can see the following from zfs /all:
Code:
[root@freenas2 ~]# zfs list NAME USED AVAIL REFER MOUNTPOINT Backup 679M 16.7G 88K /mnt/Backup Backup/Media 666M 16.7G 666M /mnt/Backup/Media Backup/Pictures 12.1M 16.7G 12M /mnt/Backup/Pictures Backup/UrBackup 88K 16.7G 88K /mnt/Backup/UrBackup PretendSSDforJail 1.48G 8.15G 88K /mnt/PretendSSDforJail PretendSSDforJail/Jail 1.48G 8.15G 83.2M /mnt/PretendSSDforJail/Jail PretendSSDforJail/Jail/.warden-template-pluginjail-11.0-x64 539M 8.15G 539M /mnt/PretendSSDforJail/Jail/.warden -template-pluginjail-11.0-x64 PretendSSDforJail/Jail/.warden-template-pluginjail-11.0-x64-20180812204057 539M 8.15G 539M /mnt/PretendSSDforJail/Jail/.warden -template-pluginjail-11.0-x64-20180812204057 PretendSSDforJail/Jail/plexmediaserver_1 350M 8.15G 865M /mnt/PretendSSDforJail/Jail/plexmed iaserver_1 TestVolume1 1.16G 14.2G 88K /mnt/TestVolume1 TestVolume1/.system 512M 14.2G 96K legacy TestVolume1/.system/configs-c0708eef149b49a396f66530a6f1b80a 608K 14.2G 496K legacy TestVolume1/.system/cores 564K 14.2G 508K legacy TestVolume1/.system/rrd-c0708eef149b49a396f66530a6f1b80a 88K 14.2G 88K legacy TestVolume1/.system/samba4 528K 14.2G 236K legacy TestVolume1/.system/syslog-c0708eef149b49a396f66530a6f1b80a 88K 14.2G 88K legacy TestVolume1/Media 666M 14.2G 666M /mnt/TestVolume1/Media TestVolume1/Pictures 12.1M 14.2G 12M /mnt/TestVolume1/Pictures freenas-boot 1.66G 6.03G 64K none freenas-boot/ROOT 1.64G 6.03G 29K none freenas-boot/ROOT/11.1-U6 1.64G 6.03G 840M / freenas-boot/ROOT/Initial-Install 1K 6.03G 837M legacy freenas-boot/ROOT/Wizard-2018-08-12_08:46:22 1K 6.03G 837M legacy freenas-boot/ROOT/default 2.14M 6.03G 839M legacy freenas-boot/grub 6.84M 6.03G 6.84M legacy [root@freenas2 ~]#
So, I think that the backup db's are in "TestVolume1/.system/configs-c0708eef149b49a396f66530a6f1b80a", however for the life of me I can't work out how to access that area and copy / move / see the db file there! I'm very comfortable using a DOS command prompt, and Powershell to a lesser extent, but the FreeBSD commands and my understanding of the system are still quite lacking, and google / forum search isn't turning up the right results - probably as I'm not using the right terminology for FreeBSD.
I think that I cannot access that directory because it is under a "legacy" mountpoint, but I can't work out how to mount it, let alone copy the db either to the right place on the FreeNAS boot drive/pool, or download it to my client PC to then upload it using the GUI. Maybe I can't mount it as its in use by the system, as my system is up and running OK? Possibly clutching at straws here...!
I'm guessing this is actually a really easy thing to do, but I just can't work out the right commands. I'd be really grateful if someone could help point me in the right direction!! Many TIA.