Mercurial Hosting > hghosting
comparison backup_repositories.sh @ 1:92a0646e38b6
fix backup
author | fffilimonov |
---|---|
date | Thu, 12 May 2022 05:32:53 -0500 |
parents | dfc36e7ed22c |
children |
comparison
equal
deleted
inserted
replaced
0:dfc36e7ed22c | 1:92a0646e38b6 |
---|---|
3 . common.sh; | 3 . common.sh; |
4 . local/backupcredentials.sh; | 4 . local/backupcredentials.sh; |
5 | 5 |
6 mkdir -p $backuphome 2>/dev/null; | 6 mkdir -p $backuphome 2>/dev/null; |
7 | 7 |
8 repos=$(curl -s http://${backupcredentials}@${domain}/private/tools/links.txt) | 8 repos=$(curl -sLu ${backupcredentials} http://${domain}/private/tools/links.txt) |
9 | 9 |
10 for repo in ${repos}; do | 10 for repo in ${repos}; do |
11 if [ ! -d ${backuphome}/${repo} ]; then | 11 if [ ! -d ${backuphome}/${repo} ]; then |
12 /usr/local/bin/hg clone http://${backupcredentials}@${domain}/repo/${repo} ${backuphome}/${repo}; | 12 /usr/local/bin/hg clone http://${backupcredentials}@${domain}/repo/${repo} ${backuphome}/${repo}; |
13 else | 13 else |