Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

DST disrupting rsync twice a year

+3
−1

I'm facing rsync full syncs every once upon a time, I think it's because DST, notice an hour of difference:

$ ls -l tier2/VIDEO-2020-06-17-15-10-27.mp4 /Volumes/KINSTON2/dat/laptop_kinstones/tier2/VIDEO-2020-06-17-15-10-27.mp4 
-rwxrwxrwx  1 ******  staff  3992777 Jun 18 09:57 /Volumes/KINSTON2/dat/laptop_kinstones/tier2/VIDEO-2020-06-17-15-10-27.mp4
-rw-r--r--@ 1 ******  staff  3992777 Jun 18 08:57 tier2/VIDEO-2020-06-17-15-10-27.mp4

Used options are:

$ rsync \
        --itemize-changes \  # just learned about this, helped me diagnostic
        --progress \  # most often not
        --recursive \
        --no-owner --no-group \  # because backing up towards MSDOS persistence
        --no-perms \  # same as above?
        --times \
        --delete \  # because backing up the left side
        --modify-window=3 \  # because backing up towards MSDOS persistence
        --verbose \  # because craving for feedback
        --dry-run \  # unless not quite
        tier2/ \  # src
        /Volumes/KINSTON2/dat/laptop_kinstones/tier2/  # dst

thx in advance (✿◠‿◠)


Notice: this enters here as a verbatim copy (excluding this notice) of post 278965 now residing closed and deleted in the Q&A category of the Meta site.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

1 comment thread

General comments (2 comments)

1 answer

+1
−0

Solved this æons ago actually...

[Assumes Bash shell].

If the DST difference is for instance an hour (or 60 minutes, or 3600 seconds), change:

--modify-window=3

To:

--modify-window=$((3 + 60 * 60))

This might save the day, with the only undesirable consequence that you now need to wait for an hour between syncs, which mmmight be possssible for many scenarios... like for instance my scenario. (✿◠‿◠)

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.

0 comment threads

Sign up to answer this question »