Skip to content

[3.5.0] rsync: [Receiver] change_dir#1 "/.../" failed: Too many levels of symbolic links (40) #1067

Description

@jb2170

Upgrading from rsync-3.4.4-1 to rsync-3.5.0-1 on Arch has broken rsync for me. I backup my computer using rsync from my root partition to an external drive.

I get

sending incremental file list
rsync: [Receiver] change_dir#1 "/home/jb2170/Mount/WD14TB-Grey/Mount/Backups/WD/Master/" failed: Too many levels of symbolic links (40)
rsync error: errors selecting input/output files, dirs (code 3) at main.c(768) [Receiver=3.5.0-g471e17dc]

from running my Makefile target $ make backup in /home/jb2170/Mount/WD14TB-Grey/Makefile

.PHONY: backup
backup:
        sudo rsync -vaAHb --del --delete-excluded \
        --backup-dir "../Old/${TIMESTAMP}/" \
        --exclude-from ${RSYNCIGNORE} \
        / \
        ${BACKUP_DIR_BASE}/Master/
        sudo chmod o+rX "${BACKUP_DIR_BASE}/Old/${TIMESTAMP}/"

which for example expands to

sudo rsync -vaAHb --del --delete-excluded --backup-dir "../Old/2026-08-28T20:39:32+01:00/" --exclude-from rsyncignore.txt / Mount/Backups/WD/Master/

which also fails on the command line (so it's not a Makefile issue), and where /home/jb2170/Mount (which has no symlinks in it) looks like the following

.
├── run -> /run/media/jb2170/
└── WD14TB-Grey
    ├── key.bin
    ├── Makefile
    ├── Mount -> ../run/e2e96953-26e1-4d5d-8100-cb082b14985e/
    └── rsyncignore.txt

and /home/jb2170/Mount/WD14TB-Grey/Mount, real path /run/media/jb2170/e2e96953-26e1-4d5d-8100-cb082b14985e, looks like the following

.
└── Backups
    └── WD
        ├── Master
        │   ├── etc
        │   ├── home
        │   ├── public
        │   └── var
        └── Old

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions