cwd for borg commands run by agents #423
rienafairefr
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I'm wondering if it's possible to change in configuration (in the plan, where we define the borg excludes, borg folders to backup etc), the current working drive of the
borg createcommandLooking at the code it seems there is a key "cwd" for commands run by the agents, currently the borg create doesn't set the current working directory, it's set to /.
Reason for this : looking at making backups of LVM snapshots instead of a potentially changing-during-the-backup system. Let's say the live file system is /home, a LVM snapshot of it is mounted in /mnt/snapshots/home (this part works fine using the scripts plugin) if I want the borg backup to contain
home, I need to have the working directory of theborg createcommand to not be /https://borgbackup.readthedocs.io/en/stable/usage/create.html#description
"Paths are added to the archive as they are given, which means that if relative paths are desired, the command has to be run from the correct directory."
All reactions