Missing description how to backup a single file #693
Labels
No Label
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: borgmatic-collective/borgmatic#693
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What I'm trying to do and why
I am trying to backup a specific configuration file and not its parent directory.
I checked the configuration reference at https://torsion.org/borgmatic/docs/reference/configuration/ and I only found the
location: source_directories
. The name implies, that only directories are considered.Knowing the structure of the
syslog
s I can only assume, that thesource_directories
configuration also applies to files? Or does it only work for files if used with globbing?Other notes / implementation ideas
In case the statement does support files
an additional information for files would be helpful.
For example:
In the example globbing is used for the
syslog
files.It might be easier for clarification if a single file and globbing is used like
There is also the case of directory globbing with
**
. Sinceborgmatic
is written in Python, I assume you can use**
to allow things like/home/**/.ssh
?Yes, you can list individual files to backup in
source_directories
! Globs also work, including.**
I'll update the comment as you suggest. Let me know if you have any other questions!
Actually, I just tried
**
to match multiple levels of directories, and it doesn't appear to work for that.Thanks for the additional comment!