Giter Site home page Giter Site logo

Comments (4)

iomari avatar iomari commented on June 3, 2024

Here is the command to backup:

sudo borgmatic --progress --stats -c ~/.config/borgmatic/config-complete.yaml --repository /mnt/2t2/backups/borg/complete

Here is the yaml: https://pastebin.com/1Jx6hSMm

When I mount the repo and list my home folder, here is a snippit of the output.

Notice the folders owned by root:

drwxr-xr-x 1 root root 0 Mar 21 11:18 . 
drwxr-xr-x 1 root root 0 Mar 21 11:18 .. 
drwx------ 1 iomari iomari 0 Jan 25 2022 .abook 
drwxrwxr-x 1 iomari iomari 0 Oct 23 2021 .ansible 
drwxr-xr-x 1 iomari iomari 0 Mar 30 2023 ansible 
drwxr-xr-x 1 iomari iomari 0 Mar 19 14:26 .antigen 
drwxrwxr-x 1 iomari iomari 0 Jan 1 2021 .aria2 
drwxr-xr-x 1 root root 0 Mar 21 11:18 backups 
-rw------- 1 iomari iomari 6090 Jul 19 2023 .bash_history 
-rw-r--r-- 1 iomari iomari 4559 Sep 18 2023 .bashrc 
drwxrwxr-x 1 iomari iomari 0 Jan 16 12:13 bin 
drwxrwxr-x 1 iomari iomari 0 Nov 12 13:59 .borg 
drwxrwxr-x 1 iomari iomari 0 Sep 3 2022 broot 
drwxrwxr-x 1 iomari iomari 0 Oct 22 15:33 .buildozer 
drwxr-xr-x 1 root root 0 Mar 21 11:18 .cache 
drwxrwxrwx 1 iomari iomari 0 Sep 24 15:12 calibre_library 
lrwxrwxrwx 1 iomari iomari 24 Oct 9 2022 clipart -> /mnt/2t2/backups/clipart 
-rw------- 1 iomari iomari 4623 Dec 4 16:00 .clush_history 
drwxrwxr-x 1 iomari iomari 0 Jan 7 2023 .clusterssh 
drwxrwxr-x 1 iomari iomari 0 Jul 5 2023 code 
drwxr-xr-x 1 root root 0 Mar 21 11:18 .config

Here is the same folder list from the live fllesystem. Keep in mind that not all the folders in home are in the repo butlook at .cache and .config as an example.

They are owned by iomari not root as it appears in the repo:

drwxrwxr-x 2 iomari iomari 4096 Mar 9 2022 cache 
drwxrwxr-x 2 iomari iomari 4096 Nov 27 2020 .cachier 
-rw------- 1 iomari iomari 17984 Jan 25 13:52 .calc_history 
-rw------- 1 iomari iomari 3359 Feb 14 2023 .calc_history-83757.tmp 
drwxr-xr-x 3 iomari iomari 4096 Oct 27 2017 calibre 
drwxrwxrwx 7 iomari iomari 4096 Sep 24 15:12 calibre_library 
lrwxrwxrwx 1 iomari iomari 17 Jun 19 2020 'Calibre Library' -> ./calibre_library 
drwxrwxr-x 5 iomari iomari 4096 Jun 3 2021 .cargo 
drwxrwxr-x 11 iomari iomari 4096 Jun 5 2021 .cheat.sh 
drwxrwxr-x 2 iomari iomari 4096 Sep 8 2020 .cht.sh 
drwxr-xr-x 6 iomari iomari 4096 Apr 23 2018 .cinnamon 
drwxrwxr-x 6 iomari iomari 4096 Jul 4 2022 .clamtk 
drwxrwxr-x 11 iomari iomari 4096 Aug 21 2019 click 
lrwxrwxrwx 1 iomari iomari 24 Oct 9 2022 clipart -> /mnt/2t2/backups/clipart 
-rw------- 1 iomari iomari 4623 Dec 4 16:00 .clush_history 
drwxrwxr-x 3 iomari iomari 4096 Jan 7 2023 .clusterssh 
drwxrwxr-x 3 iomari iomari 4096 Jul 24 2023 .cmake-js 
drwxrwxr-x 24 iomari iomari 4096 Jul 5 2023 code 
drwxrwxr-x 7 iomari iomari 4096 Mar 13 2020 code-insiders 
drwxrwxr-x 2 iomari iomari 4096 Sep 30 2022 .conda 
drwxrwxr-x 436 iomari iomari 28672 Mar 21 11:24 .config

from borg.

infectormp avatar infectormp commented on June 3, 2024

(deleted - thanks for reformatting the lists and helping in general!)

from borg.

ThomasWaldmann avatar ThomasWaldmann commented on June 3, 2024

This is not a bug, but expected behaviour.

Also I think we already have a ticket about this, thus I am closing this as duplicate.

Borg only has metadata for the filesystem objects that you put into the borg archive at borg create time. For example, you do NOT back up the .cache fs object, thus you can not expect that borg knows correct metadata for it.

In such a case, the FUSE fs created by borg mount will just "make up" the missing filesystem objects (e.g. missing parent directories), but it will use some default permissions as it does not have anything more specific. Similar will happen if you use borg extract.

Solution: backup up all fs objects you want to have precise metadata for, exclude stuff you do not need. That long list of directories to back up in your yaml is rather unusual, normally one gives one or a few starting directories ("recursion roots") and then excludes unwanted stuff that is contained in them.

from borg.

iomari avatar iomari commented on June 3, 2024

from borg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.