{"id":20768039,"url":"https://github.com/spithash/linux-backup-script","last_synced_at":"2025-06-28T07:35:31.420Z","repository":{"id":178243403,"uuid":"486915922","full_name":"spithash/Linux-Backup-Script","owner":"spithash","description":"Take backups of your mysql/mariadb databases and your files/folders. This bash script can be useful for linux server backups or migrations.","archived":false,"fork":false,"pushed_at":"2024-07-04T13:28:21.000Z","size":39,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-30T11:58:55.537Z","etag":null,"topics":["backup","backup-script","bash-script","database","linux","linux-backup","mariadb-database","mysql-database"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spithash.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,"zenodo":null}},"created_at":"2022-04-29T09:36:24.000Z","updated_at":"2024-07-25T18:40:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"498945c6-1eb8-4eed-b761-4107544c4bf3","html_url":"https://github.com/spithash/Linux-Backup-Script","commit_stats":null,"previous_names":["spithash/linux-backup-script"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/spithash/Linux-Backup-Script","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spithash%2FLinux-Backup-Script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spithash%2FLinux-Backup-Script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spithash%2FLinux-Backup-Script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spithash%2FLinux-Backup-Script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spithash","download_url":"https://codeload.github.com/spithash/Linux-Backup-Script/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spithash%2FLinux-Backup-Script/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262393281,"owners_count":23304079,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["backup","backup-script","bash-script","database","linux","linux-backup","mariadb-database","mysql-database"],"created_at":"2024-11-17T11:34:36.801Z","updated_at":"2025-06-28T07:35:31.401Z","avatar_url":"https://github.com/spithash.png","language":"Shell","readme":"# Linux Backup Script (Bash)\nTake backups of your mysql/mariadb databases and your files/folders. This can be useful for server backups or migrations.\nI personaly use it to backup all of /etc/ and maybe home user directories including websites and databases that I maintain.\n\u003cbr\u003eMakes my life easier not having to go through all the progress again and again. I just change the folder paths to the ones I need and I'm ready to go.\nThe script will use gzip to create .gz archives of your files.\n\n# Requirements\nPackages **pv \u0026 gzip** are required to be installed on your system because they're needed for the progress bar and archive creation of your files and .sql databases.\nUse your favourite package manager and install them.\nOn Debian this should do: **sudo apt install pv gzip**\n\u003cbr\u003eAlso, **sudo** is required. We need it so we can backup system files.\n\n# MySQL/MariaDB\nThe script will ask for mysql user and password confirmation each time you dump a database.\nIf this bothers you, then you should create a .my.cnf file (see below) and **also** you should remove \"-u root -p\" from the mysql commands to avoid trying to connect as root ***if you don't have to***.\n\n## .my.cnf – mysql user \u0026 password\nCreate file ~/.my.cnf and add following lines in it and replace mysqluser \u0026 mysqlpass values.\n```\n[client]\nuser=mysqluser\npassword=mysqlpass\n```\nFor safety, make this file readable to you only by running chmod 0600 ~/.my.cnf \n\n# Usage\nJust run it with: **sudo bash fullsysbackup.sh**\n\n# TODO: \n* Make it work with dialog for a fancy progress bar.\n* Maybe use rsync to copy files to a remote machine?\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspithash%2Flinux-backup-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspithash%2Flinux-backup-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspithash%2Flinux-backup-script/lists"}