Solved

RSYNC Question

Posted on 2014-01-20
6
355 Views
Last Modified: 2014-01-20
Hello,
We have a server based on CentOS, and the RSYNC is used to synchronize files through the night over the remote server.

All works just fine, but I am in a need of RSYNC now, is there a way of forcing the RSYNC to run? So what ever happens at night, I could execute now.. So I can synchronize the two servers on request.

Thank you in advance for the answer.
0
Comment
Question by:RafalKa
  • 2
  • 2
  • 2
6 Comments
 
LVL 31

Assisted Solution

by:farzanj
farzanj earned 150 total points
ID: 39794299
It should be in the cron.

You can get the rsync command that runs at night by checking your cron scheduler by issuing command

crontab -l

And once you get the command, you can run it on the shell to do the same.

Unless you disable it for the night, it would run again but rsync does incremental copies--meaning that it doesn't do anything if the files are already updated.
0
 
LVL 68

Assisted Solution

by:woolmilkporc
woolmilkporc earned 350 total points
ID: 39794303
I assume that the nightly job is triggered by ron.

If so you can examine the crontabs if you can find this jobs.

Best start with root's crontab.

If you're allowed to login as root do so and run

crontab -l

and search for a command starting in the 6th column which contains "rsync".

Once found you can copy this command (up to the end of the line) and run it as is in a shell.
0
 

Author Comment

by:RafalKa
ID: 39794314
Thank you for prompt reply,
in my case the table looks like that:

#  min         hour   dom    moy    dow    command
# (0-59)      (0-23) (1-31) (1-12) (0-6)  (Note: 0=Sun)
# ----------- ------ ------ ------ ------ -------------------------------------a
  15          1      *      *      *      /user1/Remote_Repository/RsyncReposito                                                                                     ry /user1/Remote_Repository

There is no rsync command...

??
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 31

Assisted Solution

by:farzanj
farzanj earned 150 total points
ID: 39794322
May be the file is a script.  If it is just a directory, it wouldn't make sense.

You will simply have to run that script.  Open it up and see if you see your rsync commands
0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 350 total points
ID: 39794323
/user1/Remote_Repository/RsyncRepository

seems to be a script. You can see its content with e.g. "less"

less /user1/Remote_Repository/RsyncRepository

You should find the rsync command there.  if it looks like the one you're searching for you can run the whole script from a shell (including the parameter "/user1/Remote_Repository"!):

 /user1/Remote_Repository/RsyncRepository  /user1/Remote_Repository
0
 

Author Closing Comment

by:RafalKa
ID: 39794440
Thank you for your prompt reply. All worked fine. I have run the script as you have suggested.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

867 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

16 Experts available now in Live!

Get 1:1 Help Now