kandoMaintain examples
This section provides several common kandoMaintain usage examples.
testconn example
Test the JDBC connection to the PostgreSQL database instance for GitCentric, specifying the DB user account but having kandoMaintain prompt for the DB password:
kandoMaintain testconn -u postgres
kandoMaintain prompts you to enter the database admin password, and uses the default connection string jdbc:postgresql://localhost:5075/kando since you did not specify the option.
lsconfig example
List all the entries in the GitCentric database configuration table. Specify the database username, password, and connection string in an external file called db_vals.txt which exists in a secure directory named securefiles.
kandoMaintain lsconfig -Fc ./securefiles/db_vals.txt
rmconfig example
Remove the configuration value that points to the instance of Git used by GitCentric, specifying the DB user account and DB password:
kandoMaintain rmconfig -u postgres -P DBpass2901 -n AC_GIT_BIN
addconfig example
Add a new configuration value that points to the instance of Git used by GitCentric, specifying the DB user account but having kandoMaintain prompt for the DB password:
kandoMaintain addconfig -u postgres -n AC_GIT_BIN -v '/usr/local/bin/git’
upgradedb example
After upgrading GitCentric, upgrade the GitCentric database with the latest schema. Suppress the confirmation prompt, and specify the database username, password, and connection string in an external file called db_vals.txt which exists in a secure directory named securefiles.
kandoMaintain upgradedb -y -Fc ./securefiles/db_vals.txt