LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-04-2013, 05:00 AM   #1
tripialos
Member
 
Registered: Apr 2012
Posts: 162

Rep: Reputation: Disabled
rsync re-syncs same files


Good Day

I have a problem with y rsync setup, it synchronizes the same files that are already there.

Let me first explain what i actually did:

I have a Linux VPS which i use it as a sync point between my two computers.

<pc1-win> <------------> <VPS-lnx> <------------> <pc2-win>
pull/push pull/push

I uploaded 1 GB of files from <pc1> to the <vps> and then in turn <pc2> successfully pulled-synced the files.

All was going well until my <pc1> "died" so i bought a new one. When my new computer <pc1> was installed, i used a usb flash drive, which had the same 1 GB files with the ones used in the first sync, to copy the files to my new pc.

When i run rsync, then it is pushing the again the files to the VPS.

1) why since the files i pushed to the VPS in the beginning are re-synced again from my new PC? Isn`t it possible if the source folder is destroyed to just copy from a hdd ?

2) Is there a problem i use a Linux system for sync in between two Windows systems?

Thanks
 
Old 03-04-2013, 05:29 AM   #2
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 103Reputation: 103
'man cp'


By default when you cp files it grabs the attributes of the person running the command and the current time stamp. So the new files place on the replacement PC are new to rsync.
 
Old 03-04-2013, 05:39 AM   #3
tripialos
Member
 
Registered: Apr 2012
Posts: 162

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jv2112 View Post
'man cp'


By default when you cp files it grabs the attributes of the person running the command and the current time stamp. So the new files place on the replacement PC are new to rsync.
Thats.... bad!!

Is there any way with rsync to only sync files which only have different size and forget about the attributes ownership's ?
 
Old 03-04-2013, 05:50 AM   #4
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 103Reputation: 103
--size-only

'man rsync'
 
  


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
rsync problem - syncs all files MarcusWebb1966 Linux - General 22 09-19-2012 06:58 AM
rsync can not rsync files with include filter... xiutuo Linux - Server 2 07-23-2010 03:10 AM
need to rsync only selected files (--files-from) also need to delete files on dest. ? BrianK Linux - General 5 10-22-2009 10:52 PM
Could I run rsync to download files from a server without rsync daemon? Richard.Yang Linux - Software 1 09-18-2009 05:08 AM
[rsync] get the differences between the source files and the existing files djgerbavore Linux - Networking 2 06-04-2008 01:05 PM


All times are GMT -5. The time now is 10:58 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration