LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 05-21-2007, 09:12 AM   #1
linusneumann
LQ Newbie
 
Registered: Apr 2007
Posts: 13

Rep: Reputation: 0
Rsync drives me crazy


I try to have my linux system mirror the Users/-folder of my OS/X Apple.

Code:
rsync -Pgtrv username@192.168.3.35:/Users/usename/ /home/username/Mac --exclude=.* --delete-after
is what I thought would do it.

I then changed it to
Code:
rsync -Pgtrv username@192.168.3.35:/Users/usename/ /home/username/Mac --exclude=.* --delete-after --modify-window=3 --ignore-times
tying to deal with my problem:

Every time I start this, rsync does ALL the copying again, just as if all files had changed. Kind defeats the purpose of using rsync, doesn't it?

Can anyone tell me, what the problem is? I guess something like times / owner properties is not correctly syncronized, but I don't know what that might be. Username is the same on both machines. Thanks for your help, I really appreciate it!
 
Old 05-21-2007, 09:22 AM   #2
Gethyn
Member
 
Registered: Aug 2003
Location: UK
Distribution: (X)Ubuntu 10.04/10.10, Debian 5, CentOS 5
Posts: 900

Rep: Reputation: 32
Are you sure it's actually copying the files, rather than just checking them? Typically rsync will hash every file to make sure it's unchanged before syncing it.

I'm not familiar with a lot of the rsync flags you're using there. Here's what I usually use:
rsync --compress --verbose --progress --recursive /source/folder/ /destination/folder. The first three flags can be ignored (compress is only useful over the net, and the others let you see what's going on in more detail). If the folder you're backing up has subfolders you'll want the last option though. This tutorial might be useful if you've not seen it before, particularly the section called "Using Rsync Itself".

Hope this helps.

Last edited by Gethyn; 05-21-2007 at 09:23 AM.
 
Old 05-21-2007, 10:24 AM   #3
linusneumann
LQ Newbie
 
Registered: Apr 2007
Posts: 13

Original Poster
Rep: Reputation: 0
still..

Thank you very much, I tried your options but the result is the same. I am positive it has sth to do with something that for some reason either lets rsync think that the file do not yet exist or a chicking algorithm in file comparison, that uses an information that is not correctly transferred during sync - anybody solved problems like that?
 
Old 05-21-2007, 10:58 AM   #4
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
This happens because file attributes like owner, group and modes are not the exactly the same, between the source and target. Check it and you will see !

The owner/group is liked to be different, because you are not running rsync in the local as root, and as regular user you can't change owner/group;

The easiest way to test this is to run both local and remote rsync as root.
 
  


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
Crazy USB Drives mcupples Linux - Server 2 04-27-2007 09:32 AM
SCSI drives me crazy... please help zaoka Linux - Hardware 5 04-23-2006 10:52 AM
my hp 3535 usb printer drives me crazy edemark SUSE / openSUSE 3 04-01-2005 10:46 PM
install drives me crazy Loki 7 Fedora 1 03-04-2005 03:59 PM
wireless drives me crazy nakkaya Linux - Hardware 1 08-22-2003 11:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:21 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
Open Source Consulting | Domain Registration