Solved

Red Hat Linux - what is a script or batch file to move contents of a folder, to another RH Linux server folder?

Posted on 2014-09-09
4
144 Views
Last Modified: 2015-07-01
What is a script or commands I can input to make the contents of a folder on 1 Red Hat Linux Enterprise server go to another RH linux server every hour, and replace the current contents with the newer updated contents?

Thank you!!
0
Comment
Question by:TheHappyTech
4 Comments
 
LVL 19

Assisted Solution

by:NickUpson
NickUpson earned 250 total points
ID: 40311664
0
 
LVL 23

Accepted Solution

by:
savone earned 250 total points
ID: 40311815
I would use Rsync of SSH:


rsync -a --progress --update -e 'ssh -p 2222' /path/to/folder user@remote:/path/to/folder

Of course you will also need to set up SSH keys to use rsync over SSH without entering a password.
0
 
LVL 61

Expert Comment

by:gheist
ID: 40312171
ssh wrapper is default since RHEL5...
0
 

Author Comment

by:TheHappyTech
ID: 40319624
Ok, I will try this!

Ill come back with the results.
HappyT
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
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 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.:

708 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