This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# rollback-ca-certs.sh | |
# | |
# This script restores the backed-up certificate files from a given backup directory. | |
set -euo pipefail | |
# We expect the path to the backup directory as an argument | |
if [ "$#" -lt 1 ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# update-ca-certs.sh | |
# | |
# This script backs up existing CA certificates and then replaces them. | |
set -euo pipefail | |
# Where we will store the backup; includes a timestamp | |
BACKUP_DIR="/root/ca-certificates-backup-$(date +'%Y%m%d%H%M%S')" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### DOCKER CONTAINER VERSION scylladb/scylla:3.0.7 | |
[root@93d86c158b0b restore]# scylla --version | |
3.0.7-0.20190528.4c16c1fe1 | |
[root@93d86c158b0b restore]# cqlsh --version | |
cqlsh 5.0.1 | |
#### SCHEMA | |
[root@93d86c158b0b restore]# cqlsh -e 'DESC SCHEMA'; |