Solved

How to sincronize local folder with a remote ftp folder..

Posted on 2010-11-15
8
445 Views
Last Modified: 2012-05-10
Hi

I have on local linux server:

folderA
      |-----folder B
                 |---- files
      |-----folder C
                 |---- folder C1
                              |----- files
And so on.
But I have the same structure on a remote ftp linux server and I want to make a script or use any open source tool or program or something to sincronize all files and folders from the local  to the the remote server, comparing files by date, size, etc.  Question:

- Is there any tool, program, script, or something available for doing this? or I have to do the script by my self?

Thanks
0
Comment
Question by:sminfo
8 Comments
 
LVL 9

Expert Comment

by:avilov
ID: 34141335
you can use rsync for that

http://en.wikipedia.org/wiki/Rsync
0
 

Author Comment

by:sminfo
ID: 34142795
Do I have to install rsync on both sides?, take in mind I can't install rsync on the other side because it's not mine.
0
 
LVL 2

Expert Comment

by:soulreaver1
ID: 34142991
You don't have to install rsync on the other site. It's not a server-client based program.
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

Author Comment

by:sminfo
ID: 34143973
Hi,

can  rsync  work over ftp? I mean, sincronize local foldes to remote's one on a FTP server?
I read the man page but I couldn't find any use with FTP.

0
 
LVL 9

Expert Comment

by:expert_tanmay
ID: 34144069
You can configure rsync to run as daemon to keep both the hosts synchronized. But if you have a firewall in between which blocks TCP port 873, rsync will not work.

However if you intend to use ftp then you have to configure incrontab (http://linux.die.net/man/5/incrontab) to raise events such as file modified and folder modified to trigger a script which will do the ftp.

0
 
LVL 2

Expert Comment

by:soulreaver1
ID: 34144084
Rsync can't work over ftp, but it can work over ssh.

example:
rsync -avz -e ssh remoteuser@remotehost:/remote/dir /this/dir/ 

Open in new window

0
 

Accepted Solution

by:
sminfo earned 0 total points
ID: 34239502
Hi
I found this http://ossw.ibcl.at/FTPSync/.. so, problem is solved!

Thanks
0
 

Author Closing Comment

by:sminfo
ID: 34276723
issue solved
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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.:
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…

831 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