× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

Replicate data to newer ReadyNas

alangstein_QMC
Aspirant

Replicate data to newer ReadyNas

I currently have a ReadyNAS Pro4 that I will be replacing with a newer RN626.  The older model is running firmware RAIDiator 4.2.31.  The unit is set up with active directory integration and is used to backup desktop computers in our division.  Each user has their own folder via active directory.  As the administrator I do not have access to the data on those folders.  

 

I would like to backup or clone all the data from the old ReadyNAS to the new unit including all the data in each of those active directory users folders (i.e. clone them to new folders in the new unit but they are still locked to the active directory user).  When I switch over to the new unit then all new backups will go to the new device instead of the old device.

 

Is there a way to do this kind of device cloning or backup?

 

thanks,

Alan Stein

Model: RNDP4430|ReadyNAS Pro 4 12TB (4 x 3TB Enterprise)
Message 1 of 11

Accepted Solutions
StephenB
Guru

Re: Replicate data to newer ReadyNas


@aks-2 wrote:

Come to think of it, rsync synchronisation might just work right off the bat, it would for local users (so long as you created the user accounts first).

 

Again, the home folders are only created after the user accesses the NAS with their credentials using SMB.  At that point, the system will create a btrfs subvolume.

 

If you simply run rsync, you will almost certainly end up with an ordinary folder instead of a subvolume.

 

An alternative here is to provide each user with a script that would migrate their data from their PC.  

View solution in original post

Message 4 of 11

All Replies
StephenB
Guru

Re: Replicate data to newer ReadyNas


@alangstein_QMC wrote:

As the administrator I do not have access to the data on those folders.  

 


Actually you do have access - whether you want to use that access or not is of course a different question.

 


@alangstein_QMC wrote:

 

Is there a way to do this kind of device cloning or backup?

I don't use these folders myself. You should be able to migrate them with rsync backup jobs (and you can certainly migrate public shares that way).

 

One challenge is that the folders aren't normally created until the users access the NAS over SMB. 

Message 2 of 11
aks-2
Apprentice

Re: Replicate data to newer ReadyNas

I've only used local users, not AD users. Perhaps, you could deploy the new NAS, empty, but keep the existing NAS for now. After the users sync at least once, you could then continue with an rsync synchronisation. Come to think of it, rsync synchronisation might just work right off the bat, it would for local users (so long as you created the user accounts first). Alternatively, you could run a backup job from your old NAS to your new NAS, right from the dashboard, or if you already have a full backup, restore it to the new NAS. There are several options to get the data across, the tricky bit is fixing the access rights.

 

I suggest you try one initial account (your own?), to see what happens.

 

As StephenB mentions, if you are the admin, then you *do* have access to every file on the entire storage system.

Message 3 of 11
StephenB
Guru

Re: Replicate data to newer ReadyNas


@aks-2 wrote:

Come to think of it, rsync synchronisation might just work right off the bat, it would for local users (so long as you created the user accounts first).

 

Again, the home folders are only created after the user accesses the NAS with their credentials using SMB.  At that point, the system will create a btrfs subvolume.

 

If you simply run rsync, you will almost certainly end up with an ordinary folder instead of a subvolume.

 

An alternative here is to provide each user with a script that would migrate their data from their PC.  

Message 4 of 11
aks-2
Apprentice

Re: Replicate data to newer ReadyNas

Now I am curious how a backup strategy for the NAS works (assuming restore doesn't actually fully restore everything)?

Message 5 of 11
StephenB
Guru

Re: Replicate data to newer ReadyNas


@aks-2 wrote:

Now I am curious how a backup strategy for the NAS works (assuming restore doesn't actually fully restore everything)?


Well, rsync is just vanilla rsync.  It will create ordinary folders, but not subvolumes.

 

So you need to create the shares (and home folders) before you run it to restore the data.

 

 

Message 6 of 11
Sandshark
Sensei

Re: Replicate data to newer ReadyNas

There is a command line utility available via SSH called mkhomedir_helper that will create the home share for a user.  Unfortunately, it does not support a wild card or any other multiple user input, so you have to either use it manually for each account or write a script that basically does the same.

Message 7 of 11
alangstein_QMC
Aspirant

Re: Replicate data to newer ReadyNas

Thanks, I had already resigned myself to probably requiring everybody to run a script to do the backup.  My backup solution is actually pretty low tech - there is a batch script that runs on the users computer when they log in that just does an xcopy so I can have them run a script to first copy all data from old to new then do the local backup.

Message 8 of 11
aks-2
Apprentice

Re: Replicate data to newer ReadyNas

Thanks for the clarifycation, a restore becomes much more longwinded with OS6 - it seems things are very different than with earler versions (OS4/5) in the way home areas are handled.

Message 9 of 11
Sandshark
Sensei

Re: Replicate data to newer ReadyNas

Actually, things are very different in the way all shares are handled -- that they are BTRFS sub-volumes, not just directories.  That gives you more control over each, especially using BTRFS based capabilities, but does mean shares, including user home shares, cannot be created by rsync, which is BTRFS-unaware.  All shares must be created before you try to use rsync or any other backup job to copy to them.

 

Another option would be to make your own user folders and disable all access to the standard ones (unlike OS4.x, you cannot diable their creation) and use your own "home" folder system, such as in a share users. or using a name like User1_home for User1.  Note that you cannot create shares of your own that have the same name as a user name, though you can create directories within a share with user names.  The disadvantage of using an alternate home folder approach, of course, is that you have to manually create and set access permissions to them when new users are created.  Rsync will support creating such directories within a share, though.  Time Machine is linked to the actual home folders, so alternative home folders is not an option if Time Machine is a part of your implementation.

Message 10 of 11
StephenB
Guru

Re: Replicate data to newer ReadyNas


@Sandshark wrote:

 

Another option would be to make your own user folders and disable all access to the standard ones (unlike OS4.x, you cannot diable their creation) and use your own "home" folder system, such as in a share users. or using a name like User1_home for User1. 

If you are using AD, you likely have too many users for this to be practical.

 

The flaw here is that Netgear isn't creating the home folder right away.  Deferring the creation until it is accessed with SMB makes the restoration difficult.

Message 11 of 11
Discussion stats
  • 10 replies
  • 3689 views
  • 5 kudos
  • 4 in conversation
Announcements