|
a/scripts/restore_project.py |
|
b/scripts/restore_project.py |
|
... |
|
... |
10 |
from allura import model as M
|
10 |
from allura import model as M
|
11 |
from allura.command import ReindexCommand
|
11 |
from allura.command import ReindexCommand
|
12 |
|
12 |
|
13 |
log = logging.getLogger(__name__)
|
13 |
log = logging.getLogger(__name__)
|
14 |
|
14 |
|
15 |
MONGO_HOME=os.environ.get('MONGO_HOME', '')
|
15 |
MONGO_HOME=os.environ.get('MONGO_HOME', '/usr')
|
16 |
MONGO_DUMP=os.path.join(MONGO_HOME, 'bin/mongodump')
|
16 |
MONGO_DUMP=os.path.join(MONGO_HOME, 'bin/mongodump')
|
17 |
MONGO_RESTORE=os.path.join(MONGO_HOME, 'bin/mongorestore')
|
17 |
MONGO_RESTORE=os.path.join(MONGO_HOME, 'bin/mongorestore')
|
18 |
|
18 |
|
19 |
def main():
|
19 |
def main():
|
20 |
if len(sys.argv) != 3:
|
20 |
if len(sys.argv) != 3:
|