Unix/Linux Go Back    

UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

Using Rsync as root in Solaris 11 for DR

UNIX for Advanced & Expert Users


Thread Tools Search this Thread Display Modes
Old Unix and Linux 02-11-2016   -   Original Discussion by Catullus
Catullus's Unix or Linux Image
Catullus Catullus is offline
Registered User
Join Date: Jan 2012
Last Activity: 23 November 2017, 8:57 AM EST
Location: London
Posts: 17
Thanks: 1
Thanked 0 Times in 0 Posts
Using Rsync as root in Solaris 11 for DR


I am working on a Solaris 11 server for the first time and am trying to set up the DR server. Usually I use trusted rsync between Production and DR to copy changed files to the latter, but this doesn't seem possible now that root is a role.

I want to copy things like the password, group files plus home directories and some other files. They are reasonably substantial, so I only want to transfer changed files rather than all of them.

Does anyone have a solution for this without changing root back to a normal user and thereby reducing security? Needless to say my client wouldn't be keen on reduced security.

Thanks in advance
Sponsored Links
Old Unix and Linux 02-18-2016   -   Original Discussion by Catullus
Peasant's Unix or Linux Image
Peasant Peasant is offline Forum Advisor  
Registered User
Join Date: Mar 2011
Last Activity: 24 February 2018, 2:14 AM EST
Posts: 1,135
Thanks: 32
Thanked 338 Times in 292 Posts
How about sending a zfs stream to DR site, on some other pool beside rpool and then copying what you require from that ?

You should be able to create a user on both sides and delegate permission to create snapshots and send/receive it, even incremental.
Then copy the required files you want to keep.

Other options is to use zfs send to a file then scp / rsync the file with regular user to other machine and recv it on DR side from file into dummy zpool or zfs filesystem.

Depending on your Solaris release, from 11.2 there are also UAR archives from which you can backup entire system and restore it on the other side, but i have found standard zfs commands to be more straightforward.

As for root user, you can enable it and exchange ssh keys for it. As an extra layer of security a you can put PermitRootLogin without-password
Auth will only be possible with keys not passwords for root user.

Hope that helps
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Rsync is not working at root "/" level between two servers kchinnam Shell Programming and Scripting 0 04-16-2014 12:35 AM
rsync in osx - nondestructive with differnt names of root directory briandanielz UNIX for Dummies Questions & Answers 3 08-06-2012 08:55 AM
rsync backup root files samalogo AIX 2 01-26-2012 01:12 PM
Root owns removable drive and rsync won't work triplemaya Shell Programming and Scripting 0 07-28-2009 04:16 PM

All times are GMT -4. The time now is 04:11 AM.