Password reset
Cancel
Sign up for free
Want to see how big all your log files are? This is a simple one liner to do the trick.
ls -l *.log | awk '{print $5}' | awk '{total +=$1} END {print total}' | numfmt --to=iec $total
or use du
du -b *.log | awk '{total += $1} END {print total}' | numfmt --to=iec $total
Wow. This is awesome! Thanks. Pretty much what I was looking for.
Well, I just so happen there is one here that adresses your query :)
Have a look at
https://github.com/jtorral/DockerPgHa
It spins up postgres, patroni and pgbackrest.
The best feature is the genCompose script which creates a docker-compose file for you based on your supplied input.
This repo needs some enhancements but it is a good start.