Solved

run rsync process continously on solaris

Posted on 2014-04-07
1
736 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Suggested Solutions

Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

737 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