{"id":22881490,"url":"https://github.com/luludotdev/backup","last_synced_at":"2025-08-28T19:32:51.191Z","repository":{"id":226993916,"uuid":"770133934","full_name":"luludotdev/backup","owner":"luludotdev","description":"quick and dirty backup script","archived":false,"fork":false,"pushed_at":"2024-10-15T20:16:55.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-06T21:31:55.387Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/luludotdev.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":"2024-03-11T01:34:54.000Z","updated_at":"2024-10-15T20:16:59.000Z","dependencies_parsed_at":"2024-03-11T02:50:50.828Z","dependency_job_id":"40db477a-a72f-47a4-9054-65bfad905377","html_url":"https://github.com/luludotdev/backup","commit_stats":null,"previous_names":["luludotdev/backup"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luludotdev%2Fbackup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luludotdev%2Fbackup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luludotdev%2Fbackup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luludotdev%2Fbackup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luludotdev","download_url":"https://codeload.github.com/luludotdev/backup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246491675,"owners_count":20786240,"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-12-13T17:37:27.370Z","updated_at":"2025-03-31T15:51:24.605Z","avatar_url":"https://github.com/luludotdev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Backup Script\n\n## Dependencies\n\n- [borg](https://borgbackup.readthedocs.io/en/stable/installation.html)\n- [deno](https://docs.deno.com/runtime/manual/getting_started/installation)\n  (installed automatically by the installation script)\n- [rclone](https://rclone.org/install/) (optional, required if you want to use\n  `--sync`)\n\n## Installation\n\nBy default the install script will install both deno and the backup script to\n`/usr/local/bin`, which usually requires running the script as root.\n\nYou can set `BACKUP_INSTALL_DIR` and `BACKUP_SCRIPT_NAME` to customise the\ninstall directory and script filename respectively. This can be used to install\nfor a single user, so that you dont need root.\n\n```sh\n# install as root for all users\ncurl -fsSL https://raw.githubusercontent.com/luludotdev/backup/master/install.sh | sh\n```\n\n```sh\n# install for the current user\nexport BACKUP_INSTALL_DIR=\"$HOME/.local/bin\"\ncurl -fsSL https://raw.githubusercontent.com/luludotdev/backup/master/install.sh | sh\n```\n\n## Usage\n\n```sh\n# show help\nbackup --help\n\n# backup the contents of ~/Documents to ~/backup/documents\nbackup --name documents --repo ~/backup/documents --keep 7d ~/Documents\n```\n\n### Cron\n\nIf running the script inside a cron job, make sure you add the `deno`, `borg`,\nand `rclone` binaries to cron daemon's PATH.\n\n```sh\n# add this line to your crontab before any backup jobs\nPATH=$PATH:/usr/local/bin:/usr/bin\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluludotdev%2Fbackup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluludotdev%2Fbackup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluludotdev%2Fbackup/lists"}