Skip to content

Instantly share code, notes, and snippets.

netstat -an | grep ESTABLISHED | wc -l
netstat -an | grep TIME_WAIT | wc -l
curl -fsSL https://get.docker.com/ | sh
sudo systemctl enable docker && sudo systemctl start docker
@thyn
thyn / resticheat.md
Created October 23, 2021 18:19 — forked from perfecto25/resticheat.md
Restic cheatsheet

Restic backup application - commands cheatsheet

Installation & config

  1. add Retic repo
  2. yum install restic

add a Restic credential file to root

vim /root/.restic
generate
./kafka-reassign-partitions.sh --topics-to-move-json-file /tmp/todo.json --generate --bootstrap-server localhost:9092
execute
./kafka-reassign-partitions.sh --reassignment-json-file /tmp/job.json --execute --bootstrap-server localhost:9092
verify