Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We are using SolrCloud and utilizing a the replication backup command:

curl "http://localhost:8080/solr/replication?command=backup&numberToKeep=5&location=/data/backup"

Which works great and responds with:

<?xml version="1.0" encoding="UTF-8"?>
    <lst name="responseHeader"><int name="status">0</int><int name="QTime">6</int></lst><str name="status">OK</str>

However, I'd like to rsync the files off of the box when the backup is done - but I dont know how to determine when it's finished. How can I know when it's done backing up?

share|improve this question
curl "http://foobar" && rsync foobar

&& continues upon success of the previous command.

share|improve this answer
curl returns instantly while the backup can take a few minutes when copying gigs of data. – natefox Mar 13 '13 at 0:44
up vote 0 down vote accepted

This was finally answered here:

it looks like the backup status is available via the details command, e.g.
<lst name="backup">
  <str name="startTime">Fri Apr 12 17:53:17 UTC 2013</str>
  <int name="fileCount">120</int>
  <str name="status">success</str>
  <str name="snapshotCompletedAt">Fri Apr 12 17:58:22 UTC 2013</str>
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.