LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 09-12-2011, 12:48 PM   #1
sburnay
LQ Newbie
 
Registered: Sep 2011
Location: Lisbon, Portugal
Distribution: Ubuntu, CentOS & SUSE
Posts: 29

Rep: Reputation: Disabled
File sync between ubuntu and windows


Howdy!

I'm intending to mount an Ubuntu server, on which windows clients can connect and make a backup-like sharing of a phew dirs.

The solution I'm familiar with, would be to have an fpt server (VSFTPD with virtual users), forcing the users to connect and synch the data mannually.

However, the ideal solution would be to implement an automatic synch mechanism, so that the phew users (about 10) wouldn't have to do it themselves.

I've heard of Unison, but I'm not familiar with it and I'm afraid I'll lose a endless hours around .conf's not being able to provide the desired functionality.

With my best regards,
sburnay
 
Old 09-15-2011, 04:17 AM   #2
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 106Reputation: 106
Lightbulb



I would suggest rsync.

http://www.trueblade.com/knowledge/u...ws-notebook-pc


Just set up a script to pull the data and set as a cron job when it makes sense for the 10 users.
 
Old 09-15-2011, 12:43 PM   #3
sburnay
LQ Newbie
 
Registered: Sep 2011
Location: Lisbon, Portugal
Distribution: Ubuntu, CentOS & SUSE
Posts: 29

Original Poster
Rep: Reputation: Disabled
Unhappy

Yes, thank you for the rSync suggestion, from what I've read seems good.

Problems arose after installing the cwrsync on a 64bit Windows7 and tried to run a simple backup .bat
Code:
@ECHO OFF

SETLOCAL
SET CWRSYNCHOME=%PROGRAMFILES(x86)%\CWRSYNC
SET CYGWIN=nontsec
SET HOME=%HOMEDRIVE%%HOMEPATH%
SET CWOLDPATH=%PATH%
SET PATH=%CWRSYNCHOME%\BIN;%PATH%

rsync -av /"Users"/sburnay/"TryIT"/"Sebastião Burnay.xlsx" sburnay@172.30.10.81:/home/sburnay/TryIT
And when I ran it I got the error:
Code:
Could not create directory '/cygdrive/j/.ssh'.
The authenticity of host '172.30.10.81 (172.30.10.81)' can't be established.
ECDSA key fingerprint is e3:a7:fa:c7:7c:83:02:65:15:9d:f7:b4:aa:18:d1:39.
Are you sure you want to continue connecting (yes/no)? yes
Failed to add the host to the list of known hosts (/cygdrive/j/.ssh/known_hosts)
.
sburnay@172.30.10.81's password:
sending incremental file list
rsync: change_dir "/Users/sburnay/TryIT" failed: No such file or directory (2)

sent 12 bytes  received 12 bytes  0.98 bytes/sec
total size is 0  speedup is 0.00
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1052) [sender=3.0.8]
Well, I don't know where to «strike» the error because it seems to be possible it came from a lot of origins...
 
Old 09-15-2011, 05:54 PM   #4
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 106Reputation: 106
I don't have allot of experience with Windows machines. Gave up after Windoze ME.

But the error is pointing to two areas

---> directories you are trying to work with don't exist. rsync won't create directories. I don't see the variable you are using in your posts. I would check all path's. Maybe just a simple typo.

---> The other potential opportunity is the id is not being accepted. I would try two things
add the -e switch and tell rsync you are using ssh. ie rsync -ave ssh .....
the second would be to make sure the keys are copied to the 10 users machines. Look at ssh-keygen then ssh-copy-id option.
This may help.

http://www.thegeekstuff.com/2010/09/...mand-examples/
 
  


Reply



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
File Browser, Banshee and Rhythmbox file counts do not sync brucem9999 Linux - Software 2 11-09-2010 10:05 AM
Install ubuntu in loopback file within windows farnsy Ubuntu 3 11-08-2010 04:15 PM
Ubuntu One won't sync on Ubuntu 10.10 connected to wireless network Kenny_Strawn Ubuntu 1 09-10-2010 09:33 PM
LXer: Ubuntu gets Web-based file sync and sharing LXer Syndicated Linux News 0 05-17-2009 10:40 PM
Need advice for Windows-Ubuntu file synchronisation n1c0_ds Linux - General 5 04-29-2009 07:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 12:41 AM.

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
Open Source Consulting | Domain Registration