Score:0

Borgmatic: deal with multiple different relative paths

jp flag

I'm using borgmatic to backup my whole server. As I'm runing LVM, I mount LVM snapshots to /media/.. and back them up.

   source_directories:
    - /media/snapshot-root/
    - /media/snapshot-var/
    - /data/home

That results in paths inside the backup beginning with /media/snapshot-root/ which is ugly, hard to understand and unnecessary. For example If I want to restore /etc I have to take a look into /media/snapshot-root/etc.

I know that there is an option

Working directory for the "borg create" command. Tildes are expanded. Useful for backing up using relative paths. See http://borgbackup.readthedocs.io/en/stable/usage/create.html for details. Defaults to not set. working_directory: /path/to/working/directory

But this does not help for multiple different paths. I also know that cding into the desired root path would work, but I cannot cdinto three different paths.

The only soluition i found was setting each directory to a single file in /etc(borgmatic.d/ but as I already use this for two different locations I would rather avoid it.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.