Solved

RSYNC Question

Posted on 2014-01-20
6
359 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
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 
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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
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.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

770 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