8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How do you compare one local folder and a remote folder and copy the difference to a third folder in a remote folder.e.g.
Folder A -- Is in a remote server and it has the following files
TEST1.OUT
TEST2.OUT
TEST3.OUT
Folder B --Is in a local server and it has the following files
... (5 Replies)
Discussion started by: cumeh1624
5 Replies
2. Shell Programming and Scripting
Hi
I have a requirement to rsync from remote to local machine via ssh and sync files that are changed in last n hours.
pgrep to check if no other sync is running
pgrep -f rsync.*/opt > /dev/null || rsync --bwlimit=10000 -avz --delete root@X.X.X.X:/var/source/ /opt/dest/ >> /home/log 2>&1... (0 Replies)
Discussion started by: robo
0 Replies
3. Shell Programming and Scripting
Hello,
i'm trying to script to compare the same directory on the lpar.
The problem is i'm using the command : find /etc -type d -ls but i cannot reach the remote lpar.
I have another solution to put that command in a text file and compare with Excel.
but i could be fine to have the... (7 Replies)
Discussion started by: steiner
7 Replies
4. Shell Programming and Scripting
Hi Linux Community
I would like to ask about how to compare files in deferent server with date.
Those A and B servers has the same folder, I have write a sample script to "ls" both folders and "diff" them, and then "rsync" the missing files.
It was running well, both A and B are sync, until... (2 Replies)
Discussion started by: lunaticdawn
2 Replies
5. Shell Programming and Scripting
Hi all,
I would need a bash script to sync/transfer folders recursively via FTP/RSYNC
(I initially planned to use FTP but I heard RSYNC would fit a lot better for this job(?))
The situation:
3 different Linux servers
1. source
2. destination - Samba
3. Server where the script runs on
... (2 Replies)
Discussion started by: thibautp
2 Replies
6. Shell Programming and Scripting
Hi,
I need to sync 2 remote folders so i setup with rsync which is working very fine. But, there comes another requirement to maintain multiple versions of files on destination (NOT to overwrite the destination file).
If there is difference between source file and destination file, it must... (0 Replies)
Discussion started by: prvnrk
0 Replies
7. Shell Programming and Scripting
Hi,
I am trying to create some folders on remote server with SFTP connection.
if the folder is exist then it is not executing the next commands.
i.e. if temp/folder is exist then it it not executing
mkdir $folder1
mkdir $folder2 commands.
here is my code.
sftp -b /dev/fd/0 ... (0 Replies)
Discussion started by: vgs
0 Replies
8. Shell Programming and Scripting
Hi,
Is there a way (either commands/tools/scripts/logic) to compare two given folders on different unix boxes. I want to compare folder a in Unix box 'A' with folder 'b' in Unix box 'B'. I can run the script in Unix box 'A'.
I am looking. for following results:
files/sub folders only in a... (1 Reply)
Discussion started by: sunilav
1 Replies