Hey there,
when I try to execute /usr-bin/pbm-speed-test --help I get the Following Output:
/usr/bin/pbm-speed-test --help
usage: pbm [<flags>] <command> [<args> ...]
Percona Backup for MongoDB
Flags:
--help Show context-sensitive help (also try --help-long and --help-man).
--mongodb-uri=MONGODB-URI MongoDB connection string
--compression=s2 Compression type <none>/<gzip>/<snappy>/<lz4>/<s2>/<pgzip>
Commands:
help [<command>...]
Show help.
config [<flags>] [<key>]
Set, change or list the config
backup
Make backup
restore <backup_name>
Restore backup
cancel-backup
Restore backup
list [<flags>]
Backup list
delete-backup [<flags>] [<name>]
Delete a backup
version [<flags>]
PBM version info
Which is obviously as if I would have executed /usr/bin/pbm instead.
I have followed the Installation Documentation using percona-release and percona tools, within a Dockerfile based on buster-slim.
For reference here are the contents of the Dockerfile:
FROM debian:buster-slim
RUN apt-get update && \
apt-get install -y wget gnupg2 lsb-release && \
wget https://repo.percona.com/apt/percona-release_latest.generic_all.deb && \
dpkg -i percona-release_latest.generic_all.deb && \
percona-release enable tools && \
apt-get update && \
apt-get install percona-backup-mongodb
CMD [ "pbm-agent" ]
The PBM_MONGODB_URI is set via as an enviornment variable so that pbm-agent doesn’t need any additional argument.