{"id":18753167,"url":"https://github.com/swordev/arestic-cli","last_synced_at":"2025-11-28T07:30:13.246Z","repository":{"id":57163992,"uuid":"320549417","full_name":"swordev/arestic-cli","owner":"swordev","description":"CLI tool for automatic restic backups.","archived":false,"fork":false,"pushed_at":"2021-01-07T11:07:48.000Z","size":375,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-27T03:02:12.965Z","etag":null,"topics":["auto-restic","backup","cli","config","profile","restic"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/swordev.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":"2020-12-11T11:03:40.000Z","updated_at":"2021-01-07T11:05:12.000Z","dependencies_parsed_at":"2022-09-03T23:01:55.895Z","dependency_job_id":null,"html_url":"https://github.com/swordev/arestic-cli","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swordev%2Farestic-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swordev%2Farestic-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swordev%2Farestic-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swordev%2Farestic-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swordev","download_url":"https://codeload.github.com/swordev/arestic-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239644163,"owners_count":19673578,"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":["auto-restic","backup","cli","config","profile","restic"],"created_at":"2024-11-07T17:24:35.018Z","updated_at":"2025-11-28T07:30:13.189Z","avatar_url":"https://github.com/swordev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# arestic-cli\n\u003e CLI tool for automatic restic backups.\n\n# Features\n- Config profiles\n  - Repositories\n  - Backups\n  - Forgets\n- File config JSON/YAML format\n- Auto init repositories\n- Path globs\n- Custom snapshot date by path regex capture\n- Logging file\n- Cross-platform\n\n## Install\n\n```sh\nnpm install -g @swordev/arestic-cli\n```\n\n## Usage\n\n```\nUsage: npx arestic [options] [command]\n\nOptions:\n  -c, --config-path \u003cvalue\u003e  Config path (default: \"arestic.{json,yaml,yml}:$HOME/arestic.{json,yaml,yml}\")\n  -h, --help                 display help for command\n\nCommands:\n  parse                      Parse config\n  backup [options]           Create snapshots\n  forget [options]           Forget snapshots\n  help [command]             display help for command\n```\n\n## Config schema\n\n\u003e https://github.com/swordev/arestic-cli/blob/main/arestic.schema.json\n\n## Config examples\n\n### Single repository\n\n```yaml\nrepositories:\n  local:\n    backend: local\n    path: /var/data/restic\nbackups:\n  user:\n    password: SECRET\n    repositories:\n      - local\n    paths:\n      - /home/user\n    options:\n      tag:\n        - data\n```\n\n### Multiple repository\n\n```yaml\nrepositories:\n  remote-base:\n    backend: rest\n    protocol: http\n    host: 127.0.0.1\n    port: 8000\n  remote:\n    extends: remote-base\n    username: username\n    password: SECRET\n    path: /username\n  local:\n    backend: local\n    path: /var/data/restic\nbackups:\n  user:\n    passwordPath: /var/secret/password-restic\n    repositories:\n      - remote\n      - local\n    paths:\n      - /home/user\n    options:\n      tag:\n        - data\n```\n\n### Custom snapshot date\n\n```yaml\nrepositories:\n  local:\n    backend: local\n    path: /var/data/restic\nbackups:\n  backups:\n    repositories:\n      - local\n    password: SECRET\n    snapshotByPath: true\n    pathGlobs:\n      - patterns: /var/data/backups/*\n        onlyDirectories: true\n    pathRegexes:\n      - backup-(?\u003cdate\u003e[\\d\\-]+)$\n    regexDateFormat: YYYY-MM-DD-HH-mm-ss\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswordev%2Farestic-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswordev%2Farestic-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswordev%2Farestic-cli/lists"}