Comments (4)
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.
(deleted - thanks for reformatting the lists and helping in general!)
from borg.
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.
from borg.
Related Issues (20)
- BORGMATIC UPDATE HOT 3
- what is EBUSY? HOT 4
- Typo: trailling period or not trailing period (full stop)? HOT 3
- Binary builds - releases 1.4.0b1 & 2.0.0b8: possible to (re)add "borg-linux-glibc224"? (vagrant stretch) HOT 3
- upgrade cython and msgpack
- Cannot get the permission to restore HOT 8
- write ACL tests for FreeBSD
- vagrant machines: tests broken on all but linux and macOS HOT 1
- Feature request - allow to add files to a backup, without having to have them all in source HOT 5
- Maximum supported msgpack requirement -- still valid today? HOT 3
- Clarify the docs: use of key export and key import is required for backup HOT 2
- docs: review red/white stripes
- Running command in hook on behalf of another user? HOT 3
- SIGINT / Ctrl-C handling HOT 19
- check / evaluate msgpickle
- borg serve read-only mode HOT 1
- borg 1.4: drop buster-based binary? HOT 1
- locking related KeyError exception on every command HOT 8
- macOS passcommand syntax issue (base64 command) HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from borg.