Skip to content

Backing up files owned by root #3587

Description

@fullofcaffeine

I use timeshift to create snapshots backups of my Linux system. Timeshift makes these snapshots locally by default, and then I want to use borg to add those files into my backup pipeline.

The problem is that since timeshift backups the system files, some of these files are owned by root:root and I just noticed that borg fails to backup some of those (check the E below, with a permission denied error above it):

A /timeshift/snapshots/2018-01-30_18-00-01/localhost/bin/znew
s /timeshift/snapshots/2018-01-30_18-00-01/localhost/bin/rzsh
s /timeshift/snapshots/2018-01-30_18-00-01/localhost/bin/zsh
A /timeshift/snapshots/2018-01-30_18-00-01/localhost/bin/zsh518-01-30_18-00-01/localhost/bin/zsh5                                                                                             
d /timeshift/snapshots/2018-01-30_18-00-01/localhost/bin
/timeshift/snapshots/2018-01-30_18-00-01/localhost/boot/System.map-4.13.0-32-generic: open: [Errno 13] Permission denied: '/timeshift/snapshots/2018-01-30_18-00-01/localhost/boot/System.map-4.13.0-32-generic'
E /timeshift/snapshots/2018-01-30_18-00-01/localhost/boot/System.map-4.13.0-32-generic

How would I go about solving this? I tried running borg as root using sudo but that created more problems in the end, and I don't think it's a good practice to do. Any hints appreciated.

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions