{"id":21054529,"url":"https://github.com/AnswerDotAI/autobackup","last_synced_at":"2025-10-01T08:30:40.311Z","repository":{"id":263044965,"uuid":"889180276","full_name":"AnswerDotAI/autobackup","owner":"AnswerDotAI","description":"Automatically create backups of a directory","archived":false,"fork":false,"pushed_at":"2024-11-27T23:46:31.000Z","size":397,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-15T03:48:34.494Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://answerdotai.github.io/autobackup","language":"Jupyter Notebook","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/AnswerDotAI.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-11-15T19:10:38.000Z","updated_at":"2025-01-07T22:02:03.000Z","dependencies_parsed_at":"2024-11-15T20:16:31.761Z","dependency_job_id":"69faf7a5-bad9-46f0-baf4-2dbfeb166f79","html_url":"https://github.com/AnswerDotAI/autobackup","commit_stats":null,"previous_names":["johnowhitaker/autobackup"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnswerDotAI%2Fautobackup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnswerDotAI%2Fautobackup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnswerDotAI%2Fautobackup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnswerDotAI%2Fautobackup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AnswerDotAI","download_url":"https://codeload.github.com/AnswerDotAI/autobackup/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234842001,"owners_count":18895146,"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-19T16:14:37.976Z","updated_at":"2025-10-01T08:30:35.033Z","avatar_url":"https://github.com/AnswerDotAI.png","language":"Jupyter Notebook","readme":"# autobackup\n\n\n\u003c!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! --\u003e\n\n## Usage\n\n### Installation\n\nInstall latest from the GitHub\n[repository](https://github.com/johnowhitaker/autobackup):\n\n``` sh\n$ pip install git+https://github.com/johnowhitaker/autobackup.git\n```\n\nor from [pypi](https://pypi.org/project/autobackup/)\n\n``` sh\n$ pip install autobackup\n```\n\n## How to use\n\n`autobackup src dest` will make a copy of `src` (which can be a file or\na directory) inside `dir` in a folder with the current date+time, and\nclean up any old backups based on the following rules:\n\n- The most recent 5 backups are kept\n- For each number of days in `--max_ages` (default is “2,14,60”) the\n  oldest one below that age is kept.\n\nThis ensures that you have a few recent backups, one up to 2 days old,\none up to 2 weeks old and one up to 2 months old.\n\nTo run this script hourly,\n\n1.  Create a service file (e.g. `/etc/systemd/system/backup.service`):\n\n\u003c!-- --\u003e\n\n    [Unit]\n    Description=Hourly Backup Service\n\n    [Service]\n    ExecStart=autobackup /path/to/src /path/to/dest\n\n    [Install]\n    WantedBy=multi-user.target\n\n2.  Create a timer file (e.g. `/etc/systemd/system/backup.timer`):\n\n\u003c!-- --\u003e\n\n    [Unit]\n    Description=Run Backup Service Hourly\n\n    [Timer]\n    OnCalendar=hourly\n\n    [Install]\n    WantedBy=timers.target\n\n3.  Enable and start the timer:\n\n\u003c!-- --\u003e\n\n    sudo systemctl enable backup.timer\n    sudo systemctl start backup.timer\n\nIt takes additional args from fastcore’s xtra.globtastic, for example\nyou can ise `-skip_folder_re '^\\.\\w'` to skip folders with `/.` in the\nname, useful for skipping cache.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAnswerDotAI%2Fautobackup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAnswerDotAI%2Fautobackup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAnswerDotAI%2Fautobackup/lists"}