Solved

RSYNC Question

Posted on 2014-01-20
6
360 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
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.

 
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

Back Up Your Microsoft Windows Server®

Back up 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

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
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 several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

791 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