Solved

run rsync process continously on solaris

Posted on 2014-04-07
1
691 Views
Last Modified: 2014-04-29
Dear experts -

          Currently I am running a rsync command like the following

rsync -avp /backup/tbs/ akp007@172.*.*.*:/backup/tbs  &

what's happening was the command is dying after some time. is there a way to continuously run it in the background ?  I am on Solaris 10

Regards
0
Comment
Question by:akp007
1 Comment
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 39984216
Your command isn't really "dying", instead it's coming to a regular end as soon as there is nothing left to be transferred. There's no way to keep rsync from behaving like this.

Generally, among other good options for keeping local and remote directories in sync are "lsyncd" or "drbd", but since you're on Solaris they won't work for you.

I'd suggest restarting  the synchronization regularly, either by means of a looping script or by means of a cronjob.

A cronjob will require some additional logic in order to avoid running several rsync processes in parallel.

wmp
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machineā€¦
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consolā€¦
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now