|
@@ -11,6 +11,7 @@ import tempfile
|
|
|
from . import __version__
|
|
|
|
|
|
from .helpers import Error, IntegrityError, sysinfo
|
|
|
+from .helpers import replace_placeholders
|
|
|
from .repository import Repository
|
|
|
|
|
|
import msgpack
|
|
@@ -159,6 +160,7 @@ class RemoteRepository:
|
|
|
# that the system's ssh binary picks up (non-matching) libraries from there
|
|
|
env.pop('LD_LIBRARY_PATH', None)
|
|
|
env.pop('BORG_PASSPHRASE', None) # security: do not give secrets to subprocess
|
|
|
+ env['BORG_VERSION'] = __version__
|
|
|
self.p = Popen(borg_cmd, bufsize=0, stdin=PIPE, stdout=PIPE, stderr=PIPE, env=env)
|
|
|
self.stdin_fd = self.p.stdin.fileno()
|
|
|
self.stdout_fd = self.p.stdout.fileno()
|
|
@@ -235,6 +237,7 @@ class RemoteRepository:
|
|
|
return [sys.executable, '-m', 'borg.archiver', 'serve'] + opts + self.extra_test_args
|
|
|
else: # pragma: no cover
|
|
|
remote_path = args.remote_path or os.environ.get('BORG_REMOTE_PATH', 'borg')
|
|
|
+ remote_path = replace_placeholders(remote_path)
|
|
|
return [remote_path, 'serve'] + opts
|
|
|
|
|
|
def ssh_cmd(self, location):
|