Solution to issue of "files changing during the backup process" #8455
Replies: 5 comments 1 reply
-
please counter-check everything yourself as I have been wrong often before. Take this as hints for your research:
I try to default my system's base filesystem to something (like)
Evaluate your topic 1IMO "Important note about permissions" is mostly about this:
To avoid at least the latter problem, I can set
topic 2 about backing up from a live USB distro or alikeTL;DR:
You should be especially considering this: https://borgbackup.readthedocs.io/en/stable/quickstart.html#restoring-a-backup and https://borgbackup.readthedocs.io/en/stable/deployment/pull-backup.html as they describe closely related problems All AFAIK, all simplfied:
|
Beta Was this translation helpful? Give feedback.
-
Thanks, that helps a lot. I'll look at the P.S. I wonder if doing a full disk image backup could let you skip the UID/GID issue entirely? Although maybe that is a lot slower than the normal backup mode? |
Beta Was this translation helpful? Give feedback.
-
It appears to be the "natural" thing to do on a *NIX system, just like (GNU) tar also does. In https://borgbackup.readthedocs.io/en/stable/quickstart.html#restoring-a-backup it is suggested:
I guess it depends very much on your situation:
You might just shift the problem onto another level: if you restore the system, would Eg if you only restored the image of Considering that you are backing up a machine (like
|
Beta Was this translation helpful? Give feedback.
-
(sorry for all the rewrites and confusion... the lack of "theory of mind" makes it very hard to make precise statements that are true for others) |
Beta Was this translation helpful? Give feedback.
-
Converted this from issue to discussion. |
Beta Was this translation helpful? Give feedback.
-
Have you checked borgbackup docs, FAQ, and open GitHub issues?
Yes
Is this a BUG / ISSUE report or a QUESTION?
Question
System information. For client/server mode post info for both machines.
Your borg version (borg -V).
borg 1.4.0
Operating system (distribution) and version.
Linux Mint 20.3 Cinnamon
Hardware / network configuration, and filesystems used.
PC with ext4 SSD and ext4 USB backup HDD
How much data is handled by borg?
PC and backup disks are 2TB and 4TB respectively
Full borg commandline that lead to the problem (leave away excludes and passwords)
N/A
Describe the problem you're observing.
The quick start guide has a section called "Important note about files changing during the backup process" that seems to say that you should avoid running any programs that might change files if you want to have files in a consistent state (I assume you would want this?).
However operating systems might be changing files a lot of the time.
What is a sensible solution to this issue?
Running borgbackup from a linux installation on a USB device (same one used for backup?). However I'm not sure how that ties into "Important note about permissions" - i.e. can I just run it using sudo on the USB linux install, and its okay as long as I always do that? Also, I guess backing up the USB install won't really be important, as I'll have the passphrase/keys stored on multiple mediums anyway.
Can you reproduce the problem? If so, describe how. If not, describe troubleshooting steps you took before opening the issue.
Include any warning/errors/backtraces from the system logs
N/A
Beta Was this translation helpful? Give feedback.
All reactions