Skip to content

πŸ”§ Toolbox - Script Collection

License

Notifications You must be signed in to change notification settings

Cyclenerd/toolbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

da9a838 Β· Dec 31, 2024
Dec 22, 2020
Mar 19, 2017
May 29, 2017
May 9, 2017
Mar 18, 2017
Apr 24, 2023
Dec 31, 2024
Jan 17, 2024
Oct 6, 2022
Dec 14, 2023
Nov 25, 2021
Mar 5, 2024
Mar 18, 2017
Feb 18, 2020
Aug 18, 2023
May 21, 2017
May 3, 2017
Oct 14, 2024
Mar 19, 2017
Mar 18, 2017
Apr 3, 2024
Oct 14, 2024
Mar 5, 2024
Mar 18, 2017
Oct 16, 2022
May 4, 2024
Oct 16, 2022
Oct 18, 2022
Mar 24, 2019
Aug 22, 2022
Oct 15, 2022
Apr 14, 2022
Aug 3, 2021
Nov 3, 2017
Nov 11, 2024
Oct 15, 2022
Oct 15, 2022

Repository files navigation

πŸ”§ Toolbox

My collected scripts for which no extra repository is worth it. Mostly in Perl. Maybe they'll help you. Use at your own risk ☺️. They were often quickly hacked and poorly tested.

🚨🚨🚨 No warranty or support! 🚨🚨🚨

MySQL

Used in Ansible Playbook:

# Check MySQL 8.0 replication and ping to healthchecks.io
- name: Script - Check status and ping healthchecks.io
  ansible.builtin.get_url:
    url: https://raw.githubusercontent.com/Cyclenerd/toolbox/master/check_replication_status_hc.sh
    dest: /root/check_replication_status_hc.sh
    mode: '0755'
    owner: root
    group: root
- name: Script - Change healthchecks.io UUID
  ansible.builtin.lineinfile:
    path: /root/check_replication_status_hc.sh
    regexp: '^MY_HC_ID'
    line: "MY_HC_ID='{{ healthchecks_uuid }}'"

Download & Update:

curl -O "https://raw.githubusercontent.com/Cyclenerd/toolbox/master/check_replication_status_hc.sh"

XtraBackup

  • xtradir.sh - Run xtrabackup and save either in folder [NUMBER]A or [NUMBER]B.
  • xtracloud.sh - Backup to S3 Bucket with xtrabackup and xbcloud.

Used in Ansible Playbook:

- name: XtraBackup - Download script
  ansible.builtin.get_url:
    url: https://raw.githubusercontent.com/Cyclenerd/toolbox/master/xtradir.sh
    dest: /root/xtradir.sh
    mode: '0755'
    owner: root
    group: root

- name: XtraBackup - Change MY_DIR in script
  ansible.builtin.lineinfile:
    path: /root/xtradir.sh
    regexp: '^MY_DIR'
    line: "MY_DIR={{ mysql_backup_dir }}"

MyDumper

  • mydumper.sh - Run mydumper and save either in folder [NUMBER]A or [NUMBER]B.

Used in Ansible Playbook:

- name: MyDumper - Download script
  ansible.builtin.get_url:
    url: https://raw.githubusercontent.com/Cyclenerd/toolbox/master/mydumper.sh
    dest: /root/mydumper.sh
    mode: '0755'
    owner: root
    group: root

- name: MyDumper - Change MY_DIR in script
  ansible.builtin.lineinfile:
    path: /root/mydumper.sh
    regexp: '^MY_DIR'
    line: "MY_DIR={{ mysql_backup_dir }}"

License

GNU Public License version 3. Please feel free to fork and modify this on GitHub (https://github.com/Cyclenerd/toolbox).