Docker: how to backup and restore a swarm manager.
Docker manager nodes store the swarm state and manager logs in the /var/lib/docker/swarm/ directory, without the state you cannot restore…
cat docker-how-to-backup-and-restore-a-swarm-manager.md →# Linux, Devops, Scripting, Cats and various things come to my mind
// also on this box: ./practice, ./tools and ./games
Docker manager nodes store the swarm state and manager logs in the /var/lib/docker/swarm/ directory, without the state you cannot restore…
cat docker-how-to-backup-and-restore-a-swarm-manager.md →Scenario: we want to sent an email using mailx, the email must contain an attachment and the subject should be modified with a timestamp
cat linux-mailx-how-to-sent-an-email-with-an-attachment-and-how-to-add-timestamp-to-subject.md →Scenario: We need an alias for our shell that will print epoch time upon execution, this will be useful for scripts that will run locally.
cat linux-create-a-python-alias-that-will-print-epoch-time.md →Scenario: We have a script that runs every day, this script generates a file (report.zip) which always have the same name, this causes the…
cat linux-rename-a-file-appending-a-timestamp-one-liner.md →When we create images we tend to think linear:
cat docker-doing-this-will-create-huge-images-how-to-avoid-it.md →sshpass is a well known tool that everybody loves and hates at the same time, is very handy when you need to create scripts that use ssh…
cat hacking-sshpass-for-a-legitimate-reason.md →What is critical thinking?
cat critical-thinking-informations-and-decisions.md →