{"id":23083933,"url":"https://github.com/die4ever/rsync-wifi-switch","last_synced_at":"2025-04-03T14:27:09.437Z","repository":{"id":104815995,"uuid":"198581727","full_name":"Die4Ever/rsync-wifi-switch","owner":"Die4Ever","description":null,"archived":false,"fork":false,"pushed_at":"2020-10-07T04:45:12.000Z","size":47,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-09T03:22:39.051Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Die4Ever.png","metadata":{"files":{"readme":"README.md","changelog":"change_network.py","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":"2019-07-24T07:27:01.000Z","updated_at":"2020-10-07T04:45:14.000Z","dependencies_parsed_at":"2023-05-30T05:45:28.382Z","dependency_job_id":null,"html_url":"https://github.com/Die4Ever/rsync-wifi-switch","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/Die4Ever%2Frsync-wifi-switch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Die4Ever%2Frsync-wifi-switch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Die4Ever%2Frsync-wifi-switch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Die4Ever%2Frsync-wifi-switch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Die4Ever","download_url":"https://codeload.github.com/Die4Ever/rsync-wifi-switch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247017200,"owners_count":20869782,"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-16T15:22:06.423Z","updated_at":"2025-04-03T14:27:09.400Z","avatar_url":"https://github.com/Die4Ever.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rsync-wifi-switch\n\nyou'll need to install `procmail` in order to get `lockfile`\n\nyou'll also need (at least I did on Ubuntu) to create the file `/etc/polkit-1/localauthority/50-local.d/allow-ssh-networking.pkla`\n\n```\n[Let adm group modify system settings for network]\nIdentity=unix-group:adm\nAction=org.freedesktop.NetworkManager.network-control\nResultAny=yes\n```\n\nand then run `service polkit restart`\n\nthe scripts all adjust their current working directory and automatically redirect their output to `rsync_log.txt` which gets rotated to `rsync_log.txt.old` at midnight if you use the example `crontab`\n\ncheck the example `crontab` for how to use this, you can also skip the `check_rsync.sh` and `change_network.sh` stuff if you're not worried about that, then your `crontab` entry would look like this (`rsync_wrapper.sh` adjusts the working directory and redirects the output to the log, which is nice when running as a cron)\n\n```\n# make sure to test with --dry-run first\n*/10 * * * * rsync-wifi-switch/rsync_wrapper.sh --dry-run --include-from=rsync_list.txt user@servername:\"./\" \"~/downloads/\"\n```\n\nyou'll also need to make `rsync_list.txt`, look at `example_rsync_list.txt` to see how it works or just look up how `--include-from` filters work in `rsync`\n\nif you want to get rid of the file that this downloaded without adjusting filters, you can easily just do\n\n```\necho \"\" \u003e dumbfile.zip\n```\n\nthis will empty the file and update the modified time, so `rsync` won't overwrite a newer file\nyou can also use the touch command to set the modified date to the future\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdie4ever%2Frsync-wifi-switch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdie4ever%2Frsync-wifi-switch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdie4ever%2Frsync-wifi-switch/lists"}