{"id":24653846,"url":"https://github.com/joshbeard/sysbackup","last_synced_at":"2025-10-07T13:32:21.556Z","repository":{"id":35655727,"uuid":"39930693","full_name":"joshbeard/sysbackup","owner":"joshbeard","description":"rsync wrapper for incremental backups","archived":false,"fork":false,"pushed_at":"2024-12-11T11:18:08.000Z","size":151,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-19T20:08:21.083Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"0bsd","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joshbeard.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-30T04:08:02.000Z","updated_at":"2024-09-30T04:03:10.000Z","dependencies_parsed_at":"2023-01-16T02:17:47.900Z","dependency_job_id":null,"html_url":"https://github.com/joshbeard/sysbackup","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshbeard%2Fsysbackup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshbeard%2Fsysbackup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshbeard%2Fsysbackup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshbeard%2Fsysbackup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joshbeard","download_url":"https://codeload.github.com/joshbeard/sysbackup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235633943,"owners_count":19021456,"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":"2025-01-25T21:14:18.667Z","updated_at":"2025-10-07T13:32:16.268Z","avatar_url":"https://github.com/joshbeard.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sysbackup\n\n\u003cimg align=\"right\" width=\"120\" height=\"146\" src=\".github/disk.png\"\u003e\n\nA simple rsync wrapper for creating incremental backups.\n\nThis replaces a couple of rsync wrapper shell scripts I've used over the years.\n\n## Install\n\n```shell\ncurl -sfL https://raw.githubusercontent.com/joshbeard/sysbackup/master/install.sh | sh\n\n```\n\n\u003cdetails\u003e\n\u003csummary\u003eInstallation Details and Customization\u003c/summary\u003e\n\nThe latest release can be found on the [releases](https://github.com/joshbeard/sysbackup/releases)\npage and can be downloaded and installed manually.\n\nTo download and install the latest version of sysbackup using `curl` and piping it\nto the shell, run the following command:\n\n```sh\ncurl -sfL https://raw.githubusercontent.com/joshbeard/sysbackup/master/install.sh | sh -\n```\n\n\u003cdetails\u003e\n\n\u003csummary\u003eWhat the installation script does\u003c/summary\u003e\n\n- Detects your OS and architecture.\n- Downloads the latest release of sysbackup from GitHub.\n- Verifies the checksum of the downloaded package.\n- Extracts the binary and moves it to the specified directory (default is `$HOME/bin`).\n\n\u003c/details\u003e\n\nMake sure the installation directory is in your `PATH` so you can easily run\n`sysbackup` from anywhere.\n\n### Custom Installation Directory\n\nIf you want to specify a custom installation directory, you can set the\n`INSTALL_DIR` environment variable or pass the `-d` (or `--dir`) argument. For\nexample:\n\n```sh\n# Using INSTALL_DIR environment variable\nINSTALL_DIR=/usr/local/bin curl -sfL https://raw.githubusercontent.com/joshbeard/sysbackup/master/install.sh | sh -\n\n# Using -d (or --dir) argument\ncurl -sfL https://raw.githubusercontent.com/joshbeard/sysbackup/master/install.sh | sh -s -- -d /usr/local/bin\n```\n\n### Install from Source\n\nTo install from source, clone the repository and run `go build`:\n\n```sh\ngit clone https://github.com/joshbeard/sysbackup.git\ncd sysbackup\ngo build -o sysbackup .\nmv sysbackup ~/bin\n```\n\n\u003c/details\u003e\n\n## Usage\n\n```shell\nsysbackup /path/to/source /path/to/destination\n```\n\nThis will create `/path/to/destination/YYYY-MM-DD/source/` using rsync.\nSubsequent backups use hardlinks and link back to the previous backup. A\n`Latest` symlink is created to the most recent backup.\n\nThe program behavior can be customized using CLI flags, environment variables,\nor configuration files.\n\n### Backup Directory Structure\n\nA directory will be created within the target in a configurable date format\n(`YYYY-MM-DD-HH-MM` by default). The source directory is copied to this\ndate-stamped directory. Subsequent backups will use hardlinks to the previous\nbackup to save space. A `Latest` symlink is created to the most recent backup.\n\nBe aware of how rsync handles trailing slashes on the source directory:\n\n* If the source directory has a trailing slash, the contents of the source\n  directory will be copied to the target directory. (e.g. `target/YYYY-MM-DD/`)\n* If the source directory does not have a trailing slash, the source directory\n  itself will be copied to the target directory. (e.g. `target/YYYY-MM-DD/source/`)\n\n**Example source directory:**\n\n```plain\nsource\n├── a-directory\n│   └── foo.txt\n└── example.txt\n```\n\n**Example target directory:**\n\nWith a trailing slash on the source directory:\n\n```plain\ntarget\n├── 2024-09-29-11-40\n│   ├── a-directory\n│   │   └── foo.txt\n│   └── example.txt\n└── Latest -\u003e 2024-09-29-11-40\n```\n\nWithout a trailing slash on the source directory:\n\n```plain\ntarget\n├── 2024-09-29-11-39\n│   └── src\n│       ├── a-directory\n│       │   └── foo.txt\n│       └── example.txt\n└── Latest -\u003e 2024-09-29-11-39\n```\n\nThe same target directory shouldn't be used for other purposes.\n\n## Configuration\n\nSee [`config/`](config/) for example configurations.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshbeard%2Fsysbackup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoshbeard%2Fsysbackup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshbeard%2Fsysbackup/lists"}