Go to file
2024-07-21 21:34:40 -05:00
bin Update server0_backup 2024-07-21 21:34:40 -05:00
systemd Add server0-backup 2024-07-20 16:15:56 -05:00
justfile Refactor and tidy 2024-07-14 18:51:57 -05:00
LICENSE Add homelab-scripts 2024-03-25 23:05:38 -05:00
README.org Rename files to snake_case 2024-07-21 10:31:34 -05:00

homelab-scripts

These are scripts I use to automate various tasks in my homelab.

bin

  • add_scihub_torrents : This script uses gum to select paginated text files that contain URLs of Sci Hub torrent files. For each selected file, the URLs are read and added to a qBittorrent instance.
  • qbth : This is a helper program for adding Linux and BSD distros to a qBittorrent instance.
  • qbt_sum_size : This script prints the total size of completed torrents and the total size of all torrents added to a qBittorrent instance. The former is a subset of the latter.
  • seed_armbian_torrents : This script downloads an archive from Armbian, extracts the torrent files within to a temporary directory, and adds each file to a qBittorrent instance. It first removes older Armbian torrents from the qBittorrent instance.
  • seed_scihub_torrents : This script finds which torrents have less than or equal to N seeders, where N is an integer argument supplied by the user. It then adds these torrents to a qBittorrent instance.
  • server0_backup : This script dumps my Mastodon instance's PostgreSQL database, then uses rclone to sync /etc, /var/log, and /home/jas to an S3-compatible object storage bucket. It also copies the dumped Mastodon database and .env.production to the object storage bucket.

systemd

system

  • server0-backup.service : A systemd service unit that runs the server0-backup script.
  • server0-backup.timer : A systemd timer unit that triggers the corresponding service unit.