{"id":20044950,"url":"https://github.com/gryf/py-time-machine","last_synced_at":"2025-03-02T07:32:04.118Z","repository":{"id":149006053,"uuid":"556742416","full_name":"gryf/py-time-machine","owner":"gryf","description":"Rsync/hardlinks based python script for backup purposes using local or remote locations","archived":false,"fork":false,"pushed_at":"2023-09-15T15:21:22.000Z","size":62,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-12T19:48:21.665Z","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-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gryf.png","metadata":{"files":{"readme":"README.rst","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":"2022-10-24T12:35:10.000Z","updated_at":"2022-10-24T12:38:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"cf6acbb5-854a-4d68-a73f-94e31a54705d","html_url":"https://github.com/gryf/py-time-machine","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/gryf%2Fpy-time-machine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gryf%2Fpy-time-machine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gryf%2Fpy-time-machine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gryf%2Fpy-time-machine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gryf","download_url":"https://codeload.github.com/gryf/py-time-machine/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241476329,"owners_count":19968902,"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-11-13T11:03:03.095Z","updated_at":"2025-03-02T07:32:04.094Z","avatar_url":"https://github.com/gryf.png","language":"Python","readme":"py-time-machine\n===============\n\nRsync/hardlinks based python script for backup purposes using local or remote\nlocations. Inspired by `rsync-time-machine`_.\n\nFeatures\n--------\n\nSame as in `rsync-time-machine`_, but also:\n\n* Python3 support\n* Backup to remote host\n* Configuration will be read from ``XDG_CONFIG_HOME`` or ``/etc/``\n* Using yaml instead of ini style config files\n\n\nUsage\n-----\n\nPlace the script on your path, create configuration and save it under\nconvenient location.\n\nThan, execute it:\n\n.. code:: shell-session\n\n   $ py-time-machine.py\n\nor provide configuration file:\n\n\n.. code:: shell-session\n\n   $ py-time-machine.py -c file_with_configuration.yaml\n\nThere is an option for redirecting log to a file, by passing its location with\n``--log`` parameter:\n\n.. code:: shell-session\n\n   $ py-time-machine.py -c file_with_configuration.yaml -l ~/.ptm.log\n\nor, as a root, using global configuration:\n\n.. code:: shell-session\n\n   # py-time-machine.py -l /var/log/py-time-machine.log\n\n\nConfiguration\n-------------\n\nSample configuration can be found with this repository with comments. To\nconfigure remote host, it's as simple as:\n\n.. code:: yaml\n\n   ...\n   destination: user@hostname_or_ip_address:/path/to/the/backup\n   ...\n\nIn this example ``user@`` might be omitted, so that current user would be used.\nPlease note, that in case of remote destination, absolute path should be used.\n\nIf needed, there is also a section, where rsh command might be tweaked, i.e.\nfor usage different keys and/or ssh options:\n\n.. code:: yaml\n\n   ...\n   rsh_command: \u003e-\n     ssh -i /path/to/ssh-key -o 'StrictHostKeyChecking=no' -o\n     'UserKnownHostsFile=/dev/null'\n   ...\n\nUsing yamls' ``\u003e-`` notation all of the string will be concatenated and **not**\nterminated with newline character. Be careful, to not put special characters\nlike dash or asterisk at the beginning of the broken line, or there will be\nissue with config reported.\n\n\nLicense\n-------\n\nSee the LICENSE file for license rights and limitations (GNU GPL v2).\n\n\n.. _rsync-time-machine: https://github.com/infinet/rsync-time-machine\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgryf%2Fpy-time-machine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgryf%2Fpy-time-machine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgryf%2Fpy-time-machine/lists"}