Sponsored Content
Full Discussion: Help with sync
Top Forums UNIX for Dummies Questions & Answers Help with sync Post 302434182 by Katkota on Thursday 1st of July 2010 05:10:52 PM
Old 07-01-2010
Power Help with sync

Folks;
I have 2 SUSE DNS servers, one will be the master and one will be the slave. we normally update the master when adding any new servers to the DNS list.
I'm looking for a way to sync both servers every night, so the slave is updated nightly.
I thought of using "rsync" with cron to sync the directories but i couldn't find a way to add the password into the rsync command so it won't ask for the password.

Is there a better way than "rsync" and "cron" to sync both servers?

If not; here's what i use for rsync and hopefully someone can help me entering the password in this command line if possible.

currently i use this:

Code:
# rsync  -r  -a  -v  -e  "ssh -l  root"  remote_host_ip:/remote_directory/*   /local_directory


Thanks in advance

Last edited by pludi; 07-01-2010 at 10:45 PM.. Reason: code tags, please...
 

8 More Discussions You Might Find Interesting

1. Solaris

cron sync

hi all , i have a E4900 server cluster that consists of 2 Servers (Cluster1 and cluster2 ) all of my crons are located under /var/spool/cron/crontabs . I am trying to put them on a shared place , so thati dont have to edit both crons on every system . thank you cheers (3 Replies)
Discussion started by: ppass
3 Replies

2. Solaris

Sync to Green vs. Separate Sync

Hi all....I have a Sun Ultra2 that I want to use with my PC monitor. I have purchased an adapter that does not work and I was told I need to change my video card setting (if I can) to Separate Sync.....my Monitor product number ends in 1343......I am running SunOS 5.7 ......anyone have any ideas? ... (0 Replies)
Discussion started by: psantinello
0 Replies

3. Solaris

R-sync for solaris?

Hi Gurus I ave a Prod,standby and DR server(All Sol 5.9) and i need to sync the Application running in prod,standby and DR. The Application vests in a filesystem(a directory) and syncing the directory would server my purpose. I came across rsync utility and am planning to implement it. But... (3 Replies)
Discussion started by: Hari_Ganesh
3 Replies

4. UNIX for Dummies Questions & Answers

sync password

hi guys I have multiples linux servers Centos 5.3 the idea is to create a mechanism that when users change his password that new password will change on all linux boxes.... do you have any experience on this? I know there are scripts to change password for a user but mine is whenever a... (11 Replies)
Discussion started by: karlochacon
11 Replies

5. UNIX for Advanced & Expert Users

How to Sync two servers

Hi All, want to sync. two servers , both are having solaris os. If am updating any thing in one server , it will automatically sync. with the other server . Is it possible , if so den how ? (3 Replies)
Discussion started by: natraj005
3 Replies

6. UNIX for Dummies Questions & Answers

sync directory

Hi, I have directory name as TEST on server1 and same directory TEST on server2 now i need to using these directories as new directories and files will be generated by application in TEST directory daily. I dont have rsync package on server. My approach is by lists all sub-directories... (1 Reply)
Discussion started by: tushar_spatil
1 Replies

7. Solaris

How to sync without rsync?

rsync for solaris seems to be a spotty beast. It's not installed by default. I facing a problem where I didn't have root access to be able install rsync. I did have ssh access and was able to configure the authorized keys so that no password was required to connect from one server to another. ... (1 Reply)
Discussion started by: abe123
1 Replies

8. AIX

Unable to sync a lv

Hi Please look in to the below issue and advise how to fix the issue. I tried syncvg but it gives me an error. Recently we have upgraded the service pack in this lpar. ========================================================== pmut8# lsvg -l rootvg | grep -i stale paging00 ... (3 Replies)
Discussion started by: newtoaixos
3 Replies
XPP_SYNC(8)						User Contributed Perl Documentation					       XPP_SYNC(8)

NAME
xpp_sync - Handle sync selection of Xorcom Astribanks. SYNOPSIS
xpp_sync <auto|dahdi|nn> xpp_sync [-v] DESCRIPTION
On a normal operation one Astribank device provides timing for all the other Astribank devices. When run without parameters, xpp_sync will display a list of Astribanks (xbuses) that are connected and registered as Dahdi spans. The current xpp sync master will be marked. If you this an Astribank is connected and yet it does not appear on the output of xpp_sync, it may be unregistered. Try running dahdi_registration . Parameters auto Automatically selects the best Astribank for syncing. dahdi Gets synchronization from the Dahdi sync master. nn Sets XBUS-nn as sync source. -v Also print the numeric xpp sync rank. (Parameter name is case-insensitive) Example output: Setting SYNC Current sync: 01 Best Available Syncers: + XBUS-01 (usb-0000:00:10.4-3) [usb:12345678] [ PRI_TE PRI_NT PRI_TE PRI_NT ] XBUS-00 (usb-0000:00:10.4-2) [usb:QA-01] [ FXS FXO ] ================================================== WARNING: FXO which is not the syncer cause bad PCM Affected Astribanks are: -------------------------------------------------- XBUS-00 ================================================== In this example we see that the recommended xpp sync master is XBUS-02 - it is the first on the list. It is also the actual syncer, as we can see from the '+' beside it. xpp_sync is normally called from the dahdi init.d script. The parameter it is called with defaults to auto, but it is possible to override that parameter (e.g: set it to dahdi) through the value of XPP_SYNC in /etc/dahdi/init.conf . FILES
/proc/xpp/sync (Deprecated: no longer supported) xpp_sync is essentially a nicer interface to /proc/xpp/sync . That file shows the current xpp sync master (and in what format you need to write to it to set the master). SEE ALSO
dahdi_registration(1), dahdi_cfg(1), README.Astribank perl v5.14.2 2009-09-30 XPP_SYNC(8)
All times are GMT -4. The time now is 01:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy