Solved

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

Posted on 2010-11-15
8
444 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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Recently, an awarded photographer, Selina De Maeyer (http://www.selinademaeyer.com/), completed a photo shoot of a beautiful event (http://www.sintjacobantwerpen.be/verslag-en-fotoreportage-van-de-sacramentsprocessie-door-antwerpen#thumbnails) in An…
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…
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.

911 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

22 Experts available now in Live!

Get 1:1 Help Now