blob: 7fc1312f40c495977cfdd2218259d430fa9f8cd6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/usr/bin/env python
"""Used to emulate a remote connection by changing directories.
Like chdir-wrapper, but this time run the 'rdiff-backup' script, not
some other special thing.
"""
import os, sys
if len(sys.argv) > 1: os.chdir(sys.argv[1])
#PipeConnection(sys.stdin, sys.stdout).Server()
os.system("/home/ben/prog/python/rdiff-backup/rdiff-backup --server")
|