• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 458
  • Last Modified:

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

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
sminfo
Asked:
sminfo
1 Solution
 
avilovCommented:
you can use rsync for that

http://en.wikipedia.org/wiki/Rsync
0
 
sminfoAuthor Commented:
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
 
soulreaver1Commented:
You don't have to install rsync on the other site. It's not a server-client based program.
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
sminfoAuthor Commented:
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
 
expert_tanmayCommented:
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
 
soulreaver1Commented:
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
 
sminfoAuthor Commented:
Hi
I found this http://ossw.ibcl.at/FTPSync/.. so, problem is solved!

Thanks
0
 
sminfoAuthor Commented:
issue solved
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now