{"id":23003292,"url":"https://github.com/asfaroth/server-utilities","last_synced_at":"2026-05-03T17:34:35.940Z","repository":{"id":169720262,"uuid":"455893678","full_name":"Asfaroth/Server-Utilities","owner":"Asfaroth","description":"A collection repository which mainly contains server utility scripts","archived":false,"fork":false,"pushed_at":"2023-06-28T20:05:42.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T14:24:49.616Z","etag":null,"topics":["automation","backup","bash","cron","debian","docker","script","server","unix","utility"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Asfaroth.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-05T14:35:11.000Z","updated_at":"2022-02-05T17:17:30.000Z","dependencies_parsed_at":"2023-08-01T09:01:25.172Z","dependency_job_id":null,"html_url":"https://github.com/Asfaroth/Server-Utilities","commit_stats":null,"previous_names":["asfaroth/server-utilities"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/Asfaroth/Server-Utilities","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asfaroth%2FServer-Utilities","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asfaroth%2FServer-Utilities/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asfaroth%2FServer-Utilities/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asfaroth%2FServer-Utilities/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Asfaroth","download_url":"https://codeload.github.com/Asfaroth/Server-Utilities/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asfaroth%2FServer-Utilities/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32578811,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","backup","bash","cron","debian","docker","script","server","unix","utility"],"created_at":"2024-12-15T07:13:51.723Z","updated_at":"2026-05-03T17:34:35.923Z","avatar_url":"https://github.com/Asfaroth.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Abstract\n\nThis repository contains a collection of self written scripts to make administering UNIX servers (developed on Debian based systems) easier.\nThe repository structure is based on `/usr/local` so scripts which should be run with root privileges are contained in the `sbin` directory while other non-privilegd scripts are located in the `bin` directory.\n\n# Table of Contents\n\n## (Docker) Backup Script\n\n**Summary:**\n\n- Backup script for [Docker](https://www.docker.com/) volumes\n- Automatically mounts a given backup hard drive and unmounts it afterwards\n- Automatically stops and restarts corresponding containers to keep data integrity\n- Also backs up important system files if wanted\n- Keeps backups of the last x (default 7) days\n- Is able to upload all current backups to an SMB share\n\nThis bash script was written in order to dynamically backup all Docker volumes present on the system.\nThe main purpose of the script is to use it as a cron job to make a full backup of a dockerized server infrastructure.\nTo achieve that, beside backing up Docker volumes, it is also capable to create backups of important system files.\nDocker containers which use the to-be-backuped container are automatically stopped and restarted during the backup process in order to keep the data consistent.\nGiven that there are mounting operations in this script, it is recommended to run it with root privileges.\nBackups are are saved as `tar` compressed archive files.\nAfter backing up, former backups which are older than a defined amount of days will be automatically deleted.\nAdditionally, the script is able to upload all backups (compressed into a .tar.gz file) to a remote SMB share like a NAS.\n\n## Docker Compose update Script\n\n**Summary:**\n\n- Just updates your existing docker compose setup with the newest images\n- Automatically cleans up your docker images afterwards (can be commented out)\n\nThis short script was written to have a unifrom way of updating existing docker compose setups.\nAs with an update naturally its images become unnecessary to keep, the currently saved images are cleaned up via `docker image prune`\nIf this behaviours is not wanted, make sure to comment out the last line before executing the script.\nAs this script only needs docker privileges, it is not recommended to run as root.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasfaroth%2Fserver-utilities","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasfaroth%2Fserver-utilities","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasfaroth%2Fserver-utilities/lists"}