Replace "fetch" with "fetch -r" when downloading the initial ~38MB
snapshot in order to avoid unnecessary re-downloading. Remove the earlier "rm -f ${SNAPSHOTHASH}.tgz" to make this work. Suggested by: Lars Engels MFC after: 7 days
This commit is contained in:
parent
710a9accfe
commit
66915bd926
@ -572,14 +572,13 @@ fetch_snapshot() {
|
||||
fetch_metadata || return 1
|
||||
fetch_metadata_sanity || return 1
|
||||
|
||||
rm -f ${SNAPSHOTHASH}.tgz
|
||||
rm -rf snap/
|
||||
|
||||
# Don't ask fetch(1) to be quiet -- downloading a snapshot of ~ 35MB will
|
||||
# probably take a while, so the progrees reports that fetch(1) generates
|
||||
# will be useful for keeping the users' attention from drifting.
|
||||
echo "Fetching snapshot generated at `date -r ${SNAPSHOTDATE}`:"
|
||||
fetch http://${SERVERNAME}/s/${SNAPSHOTHASH}.tgz || return 1
|
||||
fetch -r http://${SERVERNAME}/s/${SNAPSHOTHASH}.tgz || return 1
|
||||
|
||||
echo -n "Extracting snapshot... "
|
||||
tar -xzf ${SNAPSHOTHASH}.tgz snap/ || return 1
|
||||
|
Loading…
Reference in New Issue
Block a user