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
157 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 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

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

Suggested Solutions

Title # Comments Views Activity
Write an app 10 71
Open Camera IP 8 158
Problem logging tar errors 11 64
capture vmstat info and insert it into an oracle table 31 38
After running Ubuntu some time, you will be asked to download updates for fixing bugs and security updates. All the packages you download replace the previous ones, except for the kernel, also called "linux-image". This is due to the fact that w…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
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…
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.:

828 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