I have updated the main script to include a "status" flag, which will output the latest status. This allows the "status-report.sh" file to be safely removed.
I added some additional error checking to avoid having the script run without some necessary variables.
I also added error checking to ensure if the snapshot command fails, it will exit.
And i changed the default log path to be /var/log/zfs-replicate according to FreeBSDs heir structure.
I have updated the main script to include a "status" flag, which will output the latest status. This allows the "status-report.sh" file to be safely removed.
I added some additional error checking to avoid having the script run without some necessary variables. I also added error checking to ensure if the snapshot command fails, it will exit.
And i changed the default log path to be /var/log/zfs-replicate according to FreeBSDs heir structure.