Solved

RSYNC Question

Posted on 2014-01-20
6
352 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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

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 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…
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.

743 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

10 Experts available now in Live!

Get 1:1 Help Now