Solved

run rsync process continously on solaris

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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

919 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

20 Experts available now in Live!

Get 1:1 Help Now