Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
home_server:home_server_setup:other_services:snapraid [2023-05-28 Sun wk21 10:54] – [snapraid] baumkphome_server:home_server_setup:other_services:snapraid [2024-02-16 Fri wk07 22:11] (current) – [snapraid] baumkp
Line 1: Line 1:
 {{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. 
 + 
 + 
 +The main snapraid configuration file ''/etc/snapraid.conf''
  
  
 <- 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 ->
  • /app/www/public/data/attic/home_server/home_server_setup/other_services/snapraid.1685242446.txt.gz
  • Last modified: 2023-05-28 Sun wk21 10:54
  • by baumkp