3 # |
3 # |
4 |
4 |
5 import json |
5 import json |
6 import logging |
6 import logging |
7 import os |
7 import os |
|
8 import borgend |
8 from subprocess import Popen, PIPE |
9 from subprocess import Popen, PIPE |
9 from config import settings, arglistify |
10 from config import settings, arglistify |
10 |
11 |
11 logger=logging.getLogger(__name__) |
12 logger=borgend.logger.getChild(__name__) |
12 |
13 |
13 necessary_opts=['--log-json', '--progress'] |
14 necessary_opts=['--log-json', '--progress'] |
14 |
15 |
15 necessary_opts_for={ |
16 necessary_opts_for={ |
16 'create': ['--json'], |
17 'create': ['--json'], |