wademi
asked on
Linux Help - Cshell - Rsync
I Need help to write a CShell script that coiesy subdirectories in FolderA to FolderB using CShell + Rsync on a CentOsServer:
Here is the scenario:
• I have 2 remote servers ServerA and SeverB.
• I mounted 2 Directories from the remote servers to my local CentOsServer. Mount details: ServerA( Folder1), and ServerB (Folder2) .
• The Cshell script should copy folders from ServerA( Folder1) to ServerB (Folder2).
• The script should check to see if the folder exsist in ServerB (Folder2). If the folder does not exsist copy the folder including all files
Can someone please help me with the Cshell script to do this?
Thanks
Here is the scenario:
• I have 2 remote servers ServerA and SeverB.
• I mounted 2 Directories from the remote servers to my local CentOsServer. Mount details: ServerA( Folder1), and ServerB (Folder2) .
• The Cshell script should copy folders from ServerA( Folder1) to ServerB (Folder2).
• The script should check to see if the folder exsist in ServerB (Folder2). If the folder does not exsist copy the folder including all files
Can someone please help me with the Cshell script to do this?
Thanks
Sorry one small error. Folder1 needs a trailing / which means, everything INSIDE Folder1 gets synced to the inside of Folder2. So:
rsync -avu Folder1/ Folder2
ASKER
Hi xterm:. That worked but how would I view my rsync log
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window