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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
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.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

911 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

21 Experts available now in Live!

Get 1:1 Help Now