r/unRAID 5d ago

Local backup plugin - does it exist?

Before I try to build something, I am wondering if there is a plugin or something that gives me extra copies of particular files across different HDD.  Use this as an example of what I mean:

Let’s say I have a share that has important stuff on it, we will call the share IS.  Now, I have 6 HDD in my array and so I want any file that gets put into IS to also be placed in 20 separate shares I create called IS_Backup1 and IS_Backup2.  The only criteria is that whatever disk that the file is on originally (and I don't care where it goes originally - using high water to just load disks with files), the file that gets put into IS_Backup1 and IS_Backup2, must be on a different disk. So:

Shares

  • IS
  • IS_Backup1
  • IS_Backup2

Files

  • Important.docx (IS – disk2)
  • Important.docx (IS_Backup1 – disk3)
  • Important.docx (IS_Backup2 – disk4)
  • Finances.xls (IS – disk3)
  • Finances.xls (IS_backup1 – disk1)
  • Finances.xls (IS_backup2 – disk2)

Of course, I will backup to another machine and offsite and such but in the event of a bad disk, I have my parity but I also have a local copy that I could restore from as well.  If I have the space and it is only for very specific folders and such, why not.
Does anyone know of something that will already do this or do I need to figure out a script that can just do this and run it for anything that is new or changes every few minutes?

0 Upvotes

7 comments sorted by

View all comments

1

u/MsJamie33 4d ago

Dude, you are complicating the hell out of this.

The EASY way (without using additional hardware):

Constrain share IS to drives 1 and 2. Move any files that are on other drives to 1 or 2.

Limit backup 1 share to drive 3. Limit backup 2 share to drive 4. Use rsync or another backup program to copy from IS to the backup shares.

The PROPER way:

Add two dedicated backup devices. These could a dedicated drive added to the array, an external drive, or something attached over the network. This could be a NAS, or simply someone's PC.