Solved

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

Posted on 2010-11-15
8
443 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
 

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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

747 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now