Skip to content

rsync seems to copy everything in /usr every time

[SOLVED] i can run rsync again just 5 seconds after running it, and it seems to copy everything in /usr over. do things in /usr change that fast that rsync needs to copy the contecnts each time?

EDIT: the destination i was copying to was on an NTFS partition. looks like ext4 and ntfs do not play nice with each other when it comes to file permissions. i changed my destination to be on an ext4 partition and rsync is working as expected.

Edited 5 Jul 2020. We only hold this version.

1 points8 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
1 · 60% up
Kind
Text
ID
hjoy96

Author

60
posts
770
comments
7
media
View profile

10 comments

How do you know it's copying and not just checking for changes? /usr is a big folder...

1 points

oh maybe. is that the output i am watching with the -v option? i thought those were files being copied or deleted.

2 points
unknown author

Deleted before we saved it.

1 points

here is the command I run

sudo rsync -aAXHv --delete --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found","/home/*/.thumbnails/*","/home/*/.cache/mozilla/*","/home/*/.cache/chromium/*","/home/*/.cache/thunderbird/*","/home/*/.local/share/Trash/*","/home/*/.gvfs"} / /mnt/test/Arch/backup

1 points

You can try add -i option to see why it retransfers the files...

2 points

good idea. seems most of the files in /usr are being updated due to a permission change. but i cant imagine why that would be

2 points
unknown author

Deleted before we saved it.

1 points

i'm still trying to hunt this down. with -i flag rsync shows that a lot of these files are being re-copied because of a permission change.

why would all the files be executable now on the destination?

here is the source permissions

callmejoe@ArchMan /usr/share/zoneinfo/right/US $ ls -alh
total 60K
drwxr-xr-x  2 root root 4.0K Apr 27 18:38 .
drwxr-xr-x 18 root root 4.0K Apr 27 18:38 ..
-rw-r--r--  2 root root 2.4K Apr 24 01:31 Alaska
-rw-r--r--  3 root root 2.4K Apr 24 01:31 Aleutian
-rw-r--r--  2 root root  878 Apr 24 01:31 Arizona
-rw-r--r--  2 root root 3.6K Apr 24 01:31 Central
-rw-r--r--  2 root root 3.6K Apr 24 01:31 Eastern
-rw-r--r--  4 root root 1.7K Apr 24 01:31 East-Indiana
-rw-r--r--  3 root root  878 Apr 24 01:31 Hawaii
-rw-r--r--  3 root root 2.5K Apr 24 01:31 Indiana-Starke
-rw-r--r--  2 root root 2.3K Apr 24 01:31 Michigan
-rw-r--r--  4 root root 2.5K Apr 24 01:31 Mountain
-rw-r--r--  3 root root 2.9K Apr 24 01:31 Pacific
-rw-r--r--  3 root root 2.9K Apr 24 01:31 Pacific-New
-rw-r--r--  4 root root  724 Apr 24 01:31 Samoa

and the destination permissions after the rsync command

callmejoe@ArchMan /mnt/elements/Arch/backup/usr/share/zoneinfo/right/US $ ls -alh
total 64K
drwxrwxrwx 1 root root 4.0K Apr 27 18:38 .
drwxrwxrwx 1 root root 8.0K Apr 27 18:38 ..
-rwxrwxrwx 2 root root 2.4K Apr 24 01:31 Alaska
-rwxrwxrwx 3 root root 2.4K Apr 24 01:31 Aleutian
-rwxrwxrwx 2 root root  878 Apr 24 01:31 Arizona
-rwxrwxrwx 2 root root 3.6K Apr 24 01:31 Central
-rwxrwxrwx 2 root root 3.6K Apr 24 01:31 Eastern
-rwxrwxrwx 4 root root 1.7K Apr 24 01:31 East-Indiana
-rwxrwxrwx 3 root root  878 Apr 24 01:31 Hawaii
-rwxrwxrwx 3 root root 2.5K Apr 24 01:31 Indiana-Starke
-rwxrwxrwx 2 root root 2.3K Apr 24 01:31 Michigan
-rwxrwxrwx 4 root root 2.5K Apr 24 01:31 Mountain
-rwxrwxrwx 3 root root 2.9K Apr 24 01:31 Pacific
-rwxrwxrwx 3 root root 2.9K Apr 24 01:31 Pacific-New
-rwxrwxrwx 4 root root  724 Apr 24 01:31 Samoa
1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.