zeldor.biz

Linux, programming and more

Copyright © 2025
Log in

Diff two directories in Linux

December 23, 2020 by Igor Drobot Leave a Comment

For a couple of Linux/Unix systems I run daily backup over rsync.
The filesets are nearly static, so the the backup duration is nearly identical each day. Between 22 and 30 minutes for 21-systems. But there are also days, with a longer backup durations.

With the following diff and rsync commands I was able to identify the differences between the backup directories/states, which files are get changed over the time.

rsync -rv --size-only --dry-run /source/ /dest/ > diff.out
diff -qr /source /dest/

The conclusion of this tiny backup research was, I was able to exclude more files from backup, which are changing each day, but are not relevant for recovery.

Filed Under: Linux Tagged With: backup, rsync

Categories

Archives

Tags

apache2 Apple arduino ARM Automation backup bash Cisco Cluster Corosync Database Debian Debian squeeze DIY DNS Fedora FTP Fun Icinga Ipv6 KVM Linux LVM MAC OS X Monitoring MySQL Nagios Nginx openSUSE OpenVPN PHP Proxy Python python3 qemu RAID rsync Samba security ssh Ubuntu virtualization Windows Windows 7 Wordpress

Leave a Reply

Your email address will not be published. Required fields are marked *

Yeaaah Cookie! We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok