Using Rsync as root in Solaris 11 for DR

Tags
advanced, rsync

 
Thread Tools Search this Thread
# 1  
Old 02-11-2016
Using Rsync as root in Solaris 11 for DR

Hi,

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
# 2  
Old 02-18-2016
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
Regards
Peasant.

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Rsync Error: rsync: link_stat failed: No such file or directory (2) mohtashims Shell Programming and Scripting 2 02-06-2018 10:21 AM
[Solaris] rsync unexpected EOF in read_timeout osp UNIX for Advanced & Expert Users 1 03-06-2015 05:31 AM
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
Migration of system having UFS root FS with zones root to ZFS root FS sb200 Solaris 2 06-27-2012 03:35 PM
rsync backup root files samalogo AIX 2 01-26-2012 01:12 PM
root disk mirroring in solaris volume manager for solaris 10 ramareddi16 Solaris 1 09-16-2011 08:55 AM
Problem of install rsync on Solaris 10 Tlg13team Solaris 3 07-29-2009 01:29 AM
Root owns removable drive and rsync won't work triplemaya Shell Programming and Scripting 0 07-28-2009 04:16 PM
Solaris 9, root disk detachment. uxadmin007 Solaris 1 05-20-2009 07:12 AM
Solaris 8 - Asks for current root password when trying to change root password. tferrazz Solaris 8 04-07-2009 03:28 PM
Solaris 10 spac root 76% full 4xburn Solaris 5 04-06-2009 09:37 PM
Solaris root password Mr Pink Solaris 5 05-11-2007 07:08 AM