Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
FREEDOM251

Freedom251 › Blog › backups

Nightly Backups with rsync Hard Links: How Three Snapshots Used 1.4 MB Instead of 3.5 MB

By Freedom251 Team · · 4 min read

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Rsync’s --link-dest option can make each backup look like a complete directory tree while reusing unchanged file data from an earlier snapshot. In one small, author-reported test, three snapshots occupied 1,380 KB in total, compared with 3,540 KB for three ordinary copies. That is an example, not a general storage guarantee: the result depends on how much data changes and which files can be linked.

How hard-linked rsync snapshots save space

With --link-dest=DIR, rsync compares files with a basis directory and hard-links unchanged files into the new destination when their preserved attributes match. The rsync manual describes it this way: “This option behaves like –copy-dest, but unchanged files are hard linked from DIR to the destination directory.” Rsync project: rsync(1) manual

As an Amazon Associate I earn from qualifying purchases.

A hard link is another directory entry for the same underlying file data. So the new snapshot can be browsed like a complete tree, even though unchanged files do not need a second copy of their contents. If a file changes, the new snapshot stores its changed version separately; older snapshots retain their prior version.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What the 1.4 MB versus 3.5 MB example measured

MonkeyRun reports a source tree and individual complete snapshot size of 1,180 KB. After making three snapshots—with a 200,000-byte file changed before the second and a text edit before the third—the reported total for the backup root was 1,380 KB. Three ordinary copies at 1,180 KB each would total 3,540 KB by arithmetic; that figure was not a separate measurement. The author reported additional allocation of 196 KB for snapshot two and 4 KB for snapshot three. MonkeyRun’s rsync hard-link backup example

#1 Best Overall
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400) | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
  • Easily store and access 2TB to content on the go with the Seagate Portable Drive, a USB external hard drive
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.

These are small, author-reported results from one example, not an independently reproduced benchmark. The savings in another workload will vary with the amount of changed data and whether files meet rsync’s linking conditions. Also, du may count shared inodes only once during a single invocation, so adding separate snapshot totals can misrepresent the actual space used.

Creating a new snapshot

The article’s example runs rsync with archive mode, deletion handling, and the latest snapshot as its link destination, then updates a latest symlink for the next run:

Rank #2
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
  • Easily store and access 5TB of content on the go with the Seagate portable drive, a USB external hard Drive
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.
rsync -a --delete --link-dest="$LATEST" "$SOURCE/" "$DEST/"

Here, $LATEST must identify the previous snapshot directory, and $DEST is the new snapshot directory. The source and destination paths, snapshot naming, and symlink update are specific to the backup script or job you build; the command alone does not create a retention policy or a safe schedule.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The author reports observing identical inode numbers and a link count of two for one unchanged file in two snapshots, while a rewritten file had different inode numbers. Those observations illustrate the mechanism; they are not required diagnostics for every setup.

Rank #3
Seagate Portable 1TB External Hard Drive HDD – USB 3.0 for PC, Mac, PlayStation, & Xbox, 1-Year Rescue Service (STGX1000400) , Black
  • Easily store and access 1TB to content on the go with the Seagate Portable Drive, a USB external hard drive.Specific uses: Personal
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop. Reformatting may be required for Mac
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.

When rsync may treat a changed file as unchanged

By default, rsync’s quick check compares file size and last-modified time. If both match, it may skip transferring the file without comparing its contents. That can miss a content change in workflows that deliberately preserve both size and modification time; it is not the expected result of every ordinary edit.

For same-sized files, --checksum makes rsync compare checksums instead. This requires reading file contents and adds disk I/O. The manual documents both the quick-check behavior and checksum option. Rsync project: rsync(1) manual

Rank #4
Sale
WD 2TB Elements Portable External Hard Drive for Windows, USB 3.2 Gen 1/USB 3.0 for PC & Mac, Plug and Play Ready - WDBU6Y0020BBK-WESN
  • High capacity in a small enclosure – The small, lightweight design offers up to 6TB* capacity, making WD Elements portable hard drives the ideal companion for consumers on the go.
  • Plug-and-play expandability
  • Vast capacities up to 6TB[1] to store your photos, videos, music, important documents and more
  • SuperSpeed USB 3.2 Gen 1 (5Gbps)

What archive mode preserves—and what it does not

The command uses -a, rsync’s archive mode, documented as -rlptgoD. Archive mode does not include preservation of ACLs, extended attributes, access times, creation times, or source hard-link relationships. If your restore needs those properties, review the relevant rsync options and test a restore rather than assuming -a covers them. Rsync project: rsync(1) manual

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Recovering a deleted file and understanding the limits

If you think, “I deleted a folder yesterday,” a retained older snapshot may still contain it. In the reported example, running with --delete removed a deleted source file from the new snapshot while an older snapshot kept its directory entry. That is useful for recovering an earlier version, provided the relevant snapshot has not been pruned or altered.

Snapshots on the same physical disk do not protect against that disk failing. A separate external drive or NAS addresses the separate-device risk, but by itself does not make a backup off-site or immutable. A process with write access to the backup root can also alter snapshots, and a destructive incident such as theft or malware may affect both source and backup. MonkeyRun describes a snapshot tree on the same volume as its source as “an undo history,” not protection against a dead disk. MonkeyRun’s rsync hard-link backup example

Retention counts snapshots, not automatically days

The article’s script uses a default KEEP=7, meaning seven snapshot directories. That equals seven days only if the job runs once per day. If a job runs more or less often, directory-count retention covers a different time span. The article says its minute-resolution naming and broad pruning pattern were fixed in version 1.6, released September 30, 2026; this is the author’s report about that script, not an independent audit. MonkeyRun’s rsync hard-link backup example

Quick Recap

Bestseller No. 1
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400) | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400) | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$129.99
Bestseller No. 2
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$219.99
Bestseller No. 3
Seagate Portable 1TB External Hard Drive HDD – USB 3.0 for PC, Mac, PlayStation, & Xbox, 1-Year Rescue Service (STGX1000400) , Black
Seagate Portable 1TB External Hard Drive HDD – USB 3.0 for PC, Mac, PlayStation, & Xbox, 1-Year Rescue Service (STGX1000400) , Black
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$119.80
SaleBestseller No. 4

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

backupsData Recoveryhard linksLinuxrsync

Leave a Reply

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

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.