Solved

run rsync process continously on solaris

Posted on 2014-04-07
1
711 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
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…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

809 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