NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

InteXX's avatar
InteXX
Luminary
Dec 20, 2020
Solved

Scripting the snapshots (RN626X, RN516, RN316, RN204, etc.)

I'm interested in recovering all changed files on our RN316. This is the current model under discussion, but the concept is relevant to any ReadyNAS device running OS 6.* (or maybe more, for that mat...
  • StephenB's avatar
    Dec 20, 2020

    InteXX wrote:

    This will of course result in the loss of our volume.

     


    As rn_enthusiast says, it normally won't result in loss of the volume (unless you are planning to destroy it for some reason, or are wanting to do a factory reset).  

     

    So you should first sort out if you really need to do this.

     


    InteXX wrote:

     

    Is it simply a matter of looping through the files in these snapshot folders and comparing each file's metadata with the same from the previous snapshot? It sure looks like it. If so, my task ends up being a lot easier than I'd originally considered when I started discussing the notion with everyone.

     


    Each snapshot shows the full contents of the share at the time the snapshot was taken - including the metadata.  So you could just compare file dates (and maybe size) with the previous (or next) snapshot. Of course you also need to be handling deletions and adds.

     

    Any tool that allows you to diff two different folders should be usable for this (though tools that actually compare the files would work very slowly).

     

    Is your goal to recreate the snapshots on the new volume?

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More