Re: using rsync for backups - want to run only if changes from last backup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jul 11, 2025 at 5:20 PM Robert Moskowitz via users
<users@xxxxxxxxxxxxxxxxxxxxxxx> wrote:

> I have downloaded, over the Internet from IETF, using their rsync
> service for lots of years.   I had a small hand in setting this up.
>
> But here I am working with a few servers on my local net, going to my
> local NAS.  All Linux.
[...]
> So I wonder, can I do this smarter with rsync, and it appears it is not
> worth the candle.  rsync handles that very large Internet Draft download
> every night.
>
> But a chance to maybe learn a bit more.

In general whether you use rsync or something else, it has to check
for and find files that have been modified.  If that something has
access to modification times and sizes it can use those to determine
if a file has changed, otherwise it will have to download the file and
compare to your local copy to see if it has changed.  So for the
general case, I don't think you are going to get much better than
letting rsync just do its thing.  After all, this is exactly what it
is intended to do!

There may be specific situations where you might be able to get a
small improvement - say for example you don't have to worry about
modifications, just addition and deletions.  In this case it *might*
be worth counting the number of files (or similar) and only doing the
rsync if the counts differ (flaw - equal number of deletions and
additions).

I still think you should just let rsync do its thing.  I doubt any
improvement would be worth the complication.
-- 
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux