auanasgheps / snapraid-aio-script

The definitive all-in-one SnapRAID script on Linux. Diff, sync, scrub are things of the past. Manage SnapRAID and much, much more!
GNU General Public License v3.0
241 stars 36 forks source link

use snapraid status to check if previous sync was completed #119

Closed auanasgheps closed 1 month ago

auanasgheps commented 2 months ago

Description

"snapraid status" initial implementation to verify if the previous sync completed correctly before proceeding, otherwise halt the script. Fixes #109

Moreover, if this implementation is expanded, could replace some of the checks that the script currently does

Type of change

(Please delete options that are not relevant.)

Checklist:

auanasgheps commented 2 months ago

Sanity check first to make sure we can access the content and parity files

at least this will stay in place. snapraid status only looks the first content file, and only if is not found will proceed to another copy. Does not check if the parity file exists. I believe it's not strong enough.