Go Premium for a chance to win a PS4. Enter to Win

x
?
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
Medium Priority
?
182 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 1000 total points
ID: 40311664
0
 
LVL 23

Accepted Solution

by:
savone earned 1000 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 62

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

​Being a Managed Services Provider (MSP) has presented you  with challenges in the past— and by meeting those challenges you’ve reaped the rewards of success.  In 2014, challenges and rewards remain; but as the Internet and business environment evol…
BIND is the most widely used Name Server. A Name Server is the one that translates a site name to it's IP address. There is a new bug in BIND (https://kb.isc.org/article/AA-01272), affecting all versions of BIND 9 from BIND 9.1.0 (inclusive) thro…
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.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

963 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