{"id":18136242,"url":"https://github.com/purarue/raspi-backup","last_synced_at":"2025-03-30T23:32:39.132Z","repository":{"id":94610552,"uuid":"280002013","full_name":"purarue/raspi-backup","owner":"purarue","description":"script to periodically back up my machine to my raspberry pi","archived":true,"fork":false,"pushed_at":"2024-10-27T20:19:28.000Z","size":50,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-08T23:34:12.704Z","etag":null,"topics":["backup","backup-utility","cli","networking","raspberry-pi","rsync"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/purarue.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":"2020-07-15T23:16:56.000Z","updated_at":"2024-10-27T20:19:32.000Z","dependencies_parsed_at":"2023-04-18T13:48:24.817Z","dependency_job_id":null,"html_url":"https://github.com/purarue/raspi-backup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purarue%2Fraspi-backup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purarue%2Fraspi-backup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purarue%2Fraspi-backup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purarue%2Fraspi-backup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/purarue","download_url":"https://codeload.github.com/purarue/raspi-backup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246395573,"owners_count":20770239,"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-utility","cli","networking","raspberry-pi","rsync"],"created_at":"2024-11-01T14:41:23.956Z","updated_at":"2025-03-30T23:32:39.079Z","avatar_url":"https://github.com/purarue.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# raspi-backup\n\nScript to periodically back up my machine to my raspberry pi backup server. Is pretty minimal, just uses headless raspbian with an external 4TB that gets mounted on boot. See [here](https://purarue.xyz/x/tech_hardware/raspi/) for notes I took while setting that up.\n\nDoes an `rsync` without deleting files on the remote system, provide the `-n`/`-d` flags for:\n\n```\nBacks up my system to my local raspberry pi over the network\nProvide the -n option to do a --dry-run\nProvide the -d option to delete any files not present on this system (--delete-before rsync flag)\n```\n\nThis assumes that an `ssh` key has already been setup, that `ssh pi@\u003cIP ADDR\u003e` should work without a password prompt.\n\nThe `.txt` files in this directory specify which files to back up.\n\nExpects a `RASPI_MAC_ADDR` environment variable to be set, which is used with `arp -a` to get the IP address of the pi by using the mac address. You can get the mac address by running `arp -a` and comparing the IPs with the info from running `ifconfig` on the pi. Can also `export` the `RASPI_MAC_ADDR` from a file in this directory, `./mac_addr`, like:\n\n```\n#!/bin/sh\nexport RASPI_MAC_ADDR=\"b8:27:eb:3d:42:dc\"\n```\n\n### Run\n\nRun `./findpi` to make sure the pi is discoverable. Modify `configure` if necessary (to change the target directory/username). Modify the include/exclude `.txt` files to backup what you want to backup.\n\n`./backup`\n\n### Requirements\n\n- `arp`\n- `rsync`\n- `getopts`\n- `realpath`\n- `nmap`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurarue%2Fraspi-backup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpurarue%2Fraspi-backup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurarue%2Fraspi-backup/lists"}