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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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 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 navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

785 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