{"id":18255246,"url":"https://github.com/mxl/backup-tool","last_synced_at":"2025-07-10T12:33:58.909Z","repository":{"id":35613326,"uuid":"39886815","full_name":"mxl/backup-tool","owner":"mxl","description":"Script for incremental backup to OS X Sparse Bundle with rsync over ssh.","archived":false,"fork":false,"pushed_at":"2017-12-31T01:23:47.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-08T21:49:43.159Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mxl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-29T10:06:35.000Z","updated_at":"2019-07-22T21:59:46.000Z","dependencies_parsed_at":"2022-08-04T04:00:25.804Z","dependency_job_id":null,"html_url":"https://github.com/mxl/backup-tool","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mxl/backup-tool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxl%2Fbackup-tool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxl%2Fbackup-tool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxl%2Fbackup-tool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxl%2Fbackup-tool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mxl","download_url":"https://codeload.github.com/mxl/backup-tool/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxl%2Fbackup-tool/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264578901,"owners_count":23631555,"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":[],"created_at":"2024-11-05T10:15:14.832Z","updated_at":"2025-07-10T12:33:58.727Z","avatar_url":"https://github.com/mxl.png","language":"Shell","readme":"# backup-tool\nScript for incremental backup to OS X Sparse Bundle with rsync over ssh.\n\n## Prerequisites\n\nLocal host:\n- install rsync;\n- generate ssh key for root user;  \n\nRemote host that will be backed up:\n- run ssh daemon on port 22;\n- install rsync on local and remote hosts;\n- create `rsync` user on remote host:\n`sudo useradd -m -s /bin/sh -N rsync`\n- add this line to `sudoers` file:\n`rsync  ALL=(ALL) NOPASSWD: /usr/bin/rsync --host --sender -logDtprze.iLsf --numeric-ids . /`\n- append public key of generated ssh key to `/home/rsync/.ssh/authorized_keys` on remote host.\n\n\n## Usage\n\nScript must be runned as root.\n\nUse following environment variables to configure script:\n\n`host_NAME` (required) - domain  or ip of remote host that will be backed up.\n`DESTINATION` (required) - destination folder for backup.\n`EXCLUDES` (optional) - path to file that contains paths that should be excluded from backup and is used in `--exclude-from` option of `rsync`. \n`MYSQL_PASSWORD` (optional) - password for MySQL `root` user.\n`PSQL_PASSWORD` (optional) - password for PostgreSQL `postgres` user.\n\nRun script:\n\n```shell\nhost_NAME=example.com DESTINATION=~/mybackup EXCLUDES=~/mybackup/excludes.rsync ./backup.sh\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmxl%2Fbackup-tool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmxl%2Fbackup-tool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmxl%2Fbackup-tool/lists"}