fdb9166cadeda3533a8f3c88ff3240e63aaafa05
sbgrid-cli.md
... | ... | @@ -438,6 +438,14 @@ $ sbgrid-cli clean [OPTIONS...] |
438 | 438 | |
439 | 439 | ### Automated installation and updates |
440 | 440 | |
441 | +`sbgrid-cli` can be configured to update all installed versions of software. To automatically check for updates for installed versions, add this line to the user crontab file using `crontab -e`: |
|
442 | + |
|
443 | +``` |
|
444 | +*/15 * * * * /programs/x86_64-linux/sbgrid_installer/latest/sbgrid-cli update --all-titles --yes --quiet |
|
445 | +``` |
|
446 | + |
|
447 | +This will check for updates every 15 minutes and update installed versions automatically when updates are available. |
|
448 | + |
|
441 | 449 | `sbgrid-cli` can be used in an automated method to periodically install all new titles, all new versions of an updated title, and remove obsolete versions no longer included in the collection. This method is similar to the `sbgrid-admin` script used for SBGrid [*site* installations](managing_install), but with several notable benefits. `sbgrid-cli` allows rolling updates to the software collection so new titles are added continuously. Only updates are installed so data transfers are quick and efficient. |
442 | 450 | |
443 | 451 | For automated installation of all versions of all titles, this command should be added to crontab for the *sbgrid* software management account: |