public class GitHubBackup extends Object
NB: authentication via specifying a id
and pass
parameter is
highly recommended. Unauthenticated API access is rate limited to 60 per
hour, while authenticated is rate limited to 5,000.
If the API access limit is reached at any point, the backup process will stop. A resume file will be written which will be automatically consumed during subsequent runs to begin backing up at the GitHub API limits typically refresh every hour. Note that the backup execution is linear to allow this resume functionality, so on a resumed execution, modifications to previously backed up entities will NOT be detected.
To start a new backup from scratch, run with the "-c" flag.
Modifier and Type | Field and Description |
---|---|
static String |
RESUME_FILE
File name of the temporary resume file.
|
Constructor and Description |
---|
GitHubBackup() |
Modifier and Type | Method and Description |
---|---|
boolean |
doMain(String... args)
Instanced main method entry point.
|
static void |
main(String... args)
Main method for running from the command line.
|
boolean |
run()
Run the backup.
|
public static final String RESUME_FILE
public boolean run()
public static void main(String... args)
public boolean doMain(String... args)
Copyright © 2015–2022 SciJava. All rights reserved.