|
|
@@ -26,15 +26,20 @@ def main():
|
|
|
data_sources = read_data_sources(hostname, login)
|
|
|
container_name = "borgmatic"
|
|
|
ssh_auth_sock = os.getenv("SSH_AUTH_SOCK")
|
|
|
- config_d_path = Path.cwd() / "data" / "borgmatic.d"
|
|
|
- config_path = Path.cwd() / "data" / "borgmatic"
|
|
|
- credentials_path = Path.cwd() / "data" / "credentials"
|
|
|
+
|
|
|
+ data_path = Path.cwd() / "data"
|
|
|
+ config_d_path = data_path / "borgmatic.d"
|
|
|
+ config_path = data_path / "borgmatic"
|
|
|
+ credentials_path = data_path / "credentials"
|
|
|
+ history_file = data_path / ".bash_history"
|
|
|
+ history_file.touch()
|
|
|
ssh_config_path = Path.home() / ".ssh"
|
|
|
volumes = [
|
|
|
f"{config_d_path}:/etc/borgmatic.d/",
|
|
|
f"{config_path}:/etc/borgmatic/",
|
|
|
f"{credentials_path}:/credentials/",
|
|
|
f"{ssh_config_path}:/root/.ssh",
|
|
|
+ f"{history_file}:/root/.bash_history",
|
|
|
"borg_config:/root/.config/borg",
|
|
|
"borg_cache:/root/.cache/borg",
|
|
|
"borgmatic_state:/root/.local/state/borgmatic",
|