Skip to content

borg create should follow symlinks pointed to by roots #4737

Description

@capi

Have you checked borgbackup docs, FAQ, and open Github issues?

Yes

Is this a BUG / ISSUE report or a QUESTION?

Change Request

System information. For client/server mode post info for both machines.

Your borg version (borg -V).

borg 1.1.9

Operating system (distribution) and version.

Linux

Requested Change

If a specified root for borg create (either on command line or from pattern file) points to a symlink, the symlink should be followed and not the symlink as such being backed up.

Reasoning

It is unlikely that the user wants to backup the symlink and not its content. Maybe make it like rsync, where a trailing / would indicate to follow the symlink, if it's not desired as a default option.

Real-world example

I've got a server that collects backups using urbackup and for some of the clients I want to backup /var/lib/urbackup/client/current/, where this is a symlink to the latest backup.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions