[ 
https://issues.apache.org/jira/browse/SOLR-6316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14097349#comment-14097349
 ] 

Primož Skale commented on SOLR-6316:
------------------------------------

Some more info about patch.

It's funny actually. If you run 'details' command you get no information about 
backup, if you don't previously run 'backup' command. That is because 
SnapShooter object is created with that command. That is why I have introduced 
new command 'listbackups' that takes optional parameter 'location'. It lists 
number of available backups in current or selected location and also their 
names.

I have also added information about location under 'details' command (backup 
section) because it depends whether you used location param in last backup 
command. 

I always say, more information is better than less.

> API to know number of backups available
> ---------------------------------------
>
>                 Key: SOLR-6316
>                 URL: https://issues.apache.org/jira/browse/SOLR-6316
>             Project: Solr
>          Issue Type: Improvement
>    Affects Versions: 4.9
>            Reporter: Ramana
>            Priority: Minor
>         Attachments: SOLR-6316.patch
>
>
> I am using Replication backup command to create snapshot of my index. 
> http://localhost:8983/solr/replication?command=backup&numberToKeep=2
> At any point, If I would like to know how many number of back ups available, 
> we don't have any API that supports this.
> The close one i see is http://localhost:8983/solr/replication?command=details
> But the above URL gives overview of snapshots available. It doesn't say how 
> many number of snapshots available. 
> <lst name="backup">
> <str name="startTime">Sat Aug 02 08:33:37 IST 2014</str>
> <int name="fileCount">24</int>
> <str name="status">success</str>
> <str name="snapshotCompletedAt">Sat Aug 02 08:33:37 IST 2014</str>
> <null name="snapshotName"/>
> </lst>



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to