Add BORGMATIC_NAME as environment variable to service file which exposes the config name to the scripts
This commit is contained in:
parent
f15d0c6965
commit
0fed3a2d76
8 changed files with 8 additions and 0 deletions
|
@ -10,6 +10,7 @@ Type=oneshot
|
|||
ExecStart=borgmatic check --only repository --only archives --syslog-verbosity 1 --config %h/.config/borgmatic/%I.yml
|
||||
Environment="PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:%h/.bin"
|
||||
Environment="SSH_AUTH_SOCK=/run/user/%u/keyring/ssh"
|
||||
Environment="BORGMATIC_NAME=%I"
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
|
@ -10,6 +10,7 @@ Type=oneshot
|
|||
ExecStart=borgmatic create --syslog-verbosity 1 --config %h/.config/borgmatic/%I.yml
|
||||
Environment="PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:%h/.bin"
|
||||
Environment="SSH_AUTH_SOCK=/run/user/%u/keyring/ssh"
|
||||
Environment="BORGMATIC_NAME=%I"
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
|
@ -10,6 +10,7 @@ Type=oneshot
|
|||
ExecStart=borgmatic prune --syslog-verbosity 1 --config %h/.config/borgmatic/%I.yml
|
||||
Environment="PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:%h/.bin"
|
||||
Environment="SSH_AUTH_SOCK=/run/user/%u/keyring/ssh"
|
||||
Environment="BORGMATIC_NAME=%I"
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
|
@ -10,6 +10,7 @@ Type=oneshot
|
|||
ExecStart=borgmatic --syslog-verbosity 1 --config %h/.config/borgmatic/%I.yml
|
||||
Environment="PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:%h/.bin"
|
||||
Environment="SSH_AUTH_SOCK=/run/user/%u/keyring/ssh"
|
||||
Environment="BORGMATIC_NAME=%I"
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
|
@ -10,6 +10,7 @@ Type=oneshot
|
|||
ExecStart=borgmatic check --only repository --only archives --syslog-verbosity 1 --config %h/.config/borgmatic/%I.yml
|
||||
Environment="PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:%h/.bin"
|
||||
Environment="SSH_AUTH_SOCK=/run/user/%u/keyring/ssh"
|
||||
Environment="BORGMATIC_NAME=%I"
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
|
@ -10,6 +10,7 @@ Type=oneshot
|
|||
ExecStart=borgmatic create --syslog-verbosity 1 --config %h/.config/borgmatic/%I.yml
|
||||
Environment="PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:%h/.bin"
|
||||
Environment="SSH_AUTH_SOCK=/run/user/%u/keyring/ssh"
|
||||
Environment="BORGMATIC_NAME=%I"
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
|
@ -10,6 +10,7 @@ Type=oneshot
|
|||
ExecStart=borgmatic prune --syslog-verbosity 1 --config %h/.config/borgmatic/%I.yml
|
||||
Environment="PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:%h/.bin"
|
||||
Environment="SSH_AUTH_SOCK=/run/user/%u/keyring/ssh"
|
||||
Environment="BORGMATIC_NAME=%I"
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
|
@ -10,6 +10,7 @@ Type=oneshot
|
|||
ExecStart=borgmatic --syslog-verbosity 1 --config %h/.config/borgmatic/%I.yml
|
||||
Environment="PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:%h/.bin"
|
||||
Environment="SSH_AUTH_SOCK=/run/user/%u/keyring/ssh"
|
||||
Environment="BORGMATIC_NAME=%I"
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
Loading…
Reference in a new issue