LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 07-16-2007, 07:27 AM   #1
twentyninehairs
LQ Newbie
 
Registered: Jun 2007
Location: Idaho
Distribution: Debian
Posts: 2

Rep: Reputation: 0
Unhappy Debian file sync from Win2000 FTP server


I am trying to sync website files uploaded to a windows 2000 FTP server to an Apache server. The Apache is running Debian 4. I'd like to initiate file transfer from the Apache if I could.

I attempted to install Unison on the apache; and connect via ssh to the windows2000 server. At first I didn't realized I needed Unison to be running on the server. After it didn't work; I found that buried in the doc. I believe I might have Unison working if I can get Unison to listen on the Win2000 FTP server, but I don't know how. Am I just asking for trouble with this setup?
Right now both servers are sitting next to each other on the same subnet on the same LAN. Would it be better to attempt an NFS mount on the Apache from the Win2000 server? If I did that; would it significantly hinder my options for moving the Apache to a remote site?
I heard development for Unison has all but stopped? Is this right? Other than Rsync, Is there any other options at all? Do you think there is a better solution for what I am trying to do? I don't think initiating transfers from the FTP server is a great idea; doesn't seem like it would scale well to a large environment. But if it comes down to it; I'll do whatever I need to do. Thanks!
 
Old 07-16-2007, 09:03 AM   #2
dgar
Member
 
Registered: Jun 2005
Location: Candia, NH
Distribution: Ubuntu, FC, RHE3, RHE4, CentOS
Posts: 121

Rep: Reputation: 15
Is this a one time file sync, or something you want to do repeatedly?

I've set up both. You can use the 'mirror' option of lftp to pull the files off the Windows server. Read up on it. This will work for both a one-off copy or repeated copies (it only updates). It has an option to delete files locally if they disappear from the Windows machine.

For two way synchronization you'll want either rsync or unison. I use rsync over ssh.

You could always mount the windows filesystem via mount.cifs and use copy, but sharing files and folders on a web server is bad ju ju.

-dan
 
Old 07-16-2007, 09:37 AM   #3
twentyninehairs
LQ Newbie
 
Registered: Jun 2007
Location: Idaho
Distribution: Debian
Posts: 2

Original Poster
Rep: Reputation: 0
Thumbs up lftp

I'd like to do this repeatedly. Like a cron job every hour or something. Thanks for the lftp tip! Never heard of it; but sounds perfect. I'll be looking into it.
 
Old 07-16-2007, 09:56 AM   #4
dgar
Member
 
Registered: Jun 2005
Location: Candia, NH
Distribution: Ubuntu, FC, RHE3, RHE4, CentOS
Posts: 121

Rep: Reputation: 15
Quote:
Originally Posted by twentyninehairs
I'd like to do this repeatedly. Like a cron job every hour or something. Thanks for the lftp tip! Never heard of it; but sounds perfect. I'll be looking into it.
Your welcome.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
In plesk , I wish to have a backup cron job, ftp back up file to another ftp server? muskiediver Linux - General 6 07-16-2009 04:13 AM
backup server ; network file system / ftp-server ? markus1982 Linux - Security 5 06-06-2007 06:15 PM
win2000 server with VMware workstation and Debian woody as guest OS xstation Debian 1 07-14-2005 06:01 PM
Debian FTP server karlos9988 Linux - Software 1 03-09-2005 09:32 AM
file sharing on linux clients using win2000 server tulip4heaven Linux - Networking 4 01-10-2005 06:49 AM


All times are GMT -5. The time now is 01:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration