LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-13-2022, 12:32 AM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,593

Rep: Reputation: 180Reputation: 180
rsync apparently not skipping unchanged files.


I'm copying a large number of large files from one device to another, both of which are mounted on the same computer. My rsync command is:
Code:
rsync -tvr -l -H -K -p -E -o -g --partial --progress --delete --exclude=lost+found /mnt/RAID /mnt/RAIDmirror
rsync is supposed to skip copy files to the destination that are the same as on the source, but the shown command is copying all files every time it's run, including large tarfiles over a year old. Only two tarfiles should change per day, so I would expect this rsync to go relatively quickly.

Why is it copying every file? is there something about my command options that's causing this?
 
Old 07-13-2022, 12:42 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,002

Rep: Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338Reputation: 7338
probably the timestamp(s) on those files were not identical. That may depend on the filesystem used.
 
Old 07-13-2022, 12:50 AM   #3
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,593

Original Poster
Rep: Reputation: 180Reputation: 180
OK - I figured it out. I needed to have src/dest as: /mnt/RAID/ /mnt/RAIDmirror/ -- that is, with the trailing '/'. Otherwise, it was copying /mnt/RAID/* to /mnt/RAIDmirror/RAID/
 
Old 07-13-2022, 12:56 AM   #4
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,738

Rep: Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222
You need to review each of the options being used in the man page for rsync. I dont have them memorized.
I use
Code:
/usr/bin/rsync -a …
And daily 40GB transfers take about 1 1/2 minutes
 
  


Reply

Tags
rsync



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rsync is downloading the same unchanged files everytime amityweb Linux - General 8 04-24-2012 07:04 AM
Rsync with Skipping 0 bytes files option? frenchn00b Linux - General 2 06-11-2011 01:07 AM
rsync "skipping non-regular files" with --archive option andrewtblake Linux - Server 2 04-29-2010 04:15 PM
rsync skipping files s_siouris Linux - Software 4 04-06-2005 11:00 AM
FC2 test 3 mouse skipping a beat, movie skipping also jang Fedora 1 10-28-2004 07:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:08 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