Both sides previous revision Previous revision Next revision | Previous revisionLast revisionBoth sides next revision |
home_server:home_server_setup:other_services:snapraid [2023-05-28 Sun wk21 10:54] – [snapraid] baumkp | home_server:home_server_setup:other_services:snapraid [2023-05-28 Sun wk21 11:07] – [snapraid] baumkp |
---|
{{tag>snapraid linux}} | {{tag>snapraid linux}} |
======snapraid====== | ======snapraid====== |
I have been using snapraid the past 8 years or so for my main first past redundancy. I have a second home server used as a backup server that weekly backs up using [[home_server:home_server_setup:other_services:back-up_server#resticrestic]]. | I have been using snapraid the past 8 years or so for my main first past redundancy. I have a second home server used as a backup server that weekly backs up using [[home_server:home_server_setup:other_services:back-up_server#restic]]. |
| |
| The main snapraid commands I use are: |
| ''sudo snapraid sync'' to sync the files that have changes since last sync. I usually do this weekly, manually. |
| ''sudo snapraid scrub'' to check the parity of the array, usually the oldest files first. I usually do this weekly, manually. |
| ''sudo snapraid status'' to check the status of the array. I usually do this weekly, manually. |
| ''sudo snapraid touch'' to add sub-second time granularity to the files that improves snapraid usage. I usually do this weekly, if reported as requried by status, manually. |
| ''sudo snapraid smart'' to check the smart status of the array drives (does not report on nvme drives). I usually do this weekly, manually. Really for information only. |
| |
| Snapraid allows files and directories that have been deleted since the last sync to be recovered. |
| |
| *''snapraid diff --test-fmt path'' |
| *''snapraid diff --test-fmt disk'' This will let you know the data disk from snapraids array perspective |
| Snapraid does not expect you to provide the absolute file system path when fixing files. |
| *''snapraid fix -m'' This will recreate any deleted file in the entire array |
| *''snapraid fix -m -d d1'' This will recreate any deleted file on data disk d1 |
| *''snapraid fix -m -f Example/'' This will recreate the contents of any folder named Example anywhere in the array |
| *''snapraid check -m -f Example/ -v'' If you are unsure what will happen you can replace fix with check above and add -v with this. Snapraid will then tell you that there is a problem with each of the files matching the filter or that they are ok. |
| |
<- home_server:home_server_setup:other_services:index|Prev ^ home_server:home_server_setup:other_services|Start page ^ home_server:home_server_setup:other_services:timedate|Next -> | <- home_server:home_server_setup:other_services:index|Prev ^ home_server:home_server_setup:other_services|Start page ^ home_server:home_server_setup:other_services:timedate|Next -> |