Title: Safer incremental backups · Issue #244 · josegonzalez/python-github-backup · GitHub
Open Graph Title: Safer incremental backups · Issue #244 · josegonzalez/python-github-backup
X Title: Safer incremental backups · Issue #244 · josegonzalez/python-github-backup
Description: Status quo At the moment, incremental backups always use the last update of the backup as a since date, even if the last backup failed. This is documented as a known issue. Proposed feature The behavior could be improved by storing the t...
Open Graph Description: Status quo At the moment, incremental backups always use the last update of the backup as a since date, even if the last backup failed. This is documented as a known issue. Proposed feature The beh...
X Description: Status quo At the moment, incremental backups always use the last update of the backup as a since date, even if the last backup failed. This is documented as a known issue. Proposed feature The beh...
Opengraph URL: https://github.com/josegonzalez/python-github-backup/issues/244
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Safer incremental backups","articleBody":"## Status quo\r\n\r\nAt the moment, incremental backups always use the last update of the backup as a `since` date, even if the last backup failed. This is documented as a [known issue](https://github.com/josegonzalez/python-github-backup?tab=readme-ov-file#incremental-backup).\r\n\r\n## Proposed feature\r\n\r\nThe behavior could be improved by storing the timestamps of the last successful updates in a file, e.g. `/.successful-timestamps.json`:\r\n\r\n```js\r\n{\r\n \"some-repo/issues\": 1707118232,\r\n \"some-repo/pulls\": 1707118232,\r\n // ...\r\n}\r\n```\r\n\r\nThen failed backups would not break future incremental backups.\r\n\r\n## Migration\r\n\r\nThe implementation would need to be backwards-compatible with existing backup stores that don't have this file yet or where the file is incomplete. It could work like this:\r\n\r\n1. If the file exists and contains the key for the backup source in question, use the timestamp as the `since` time.\r\n2. If the file doesn't exist or does not contain the relevant key but an incremental backup was requested, use the old behavior.\r\n3. In any case (full or incremental backup), create or update the file with the new timestamps for the next run(s).","author":{"url":"https://github.com/lukasbestle","@type":"Person","name":"lukasbestle"},"datePublished":"2024-02-05T07:33:44Z","url":"https://github.com/josegonzalez/python-github-backup/issues/244"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d3fc16f6-ee2b-acc3-b200-839663eaaf13 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A0FE:34A79D:5270B2:7078C3:6B05E17B |
| html-safe-nonce | 6844654be03b0216641b09854811bd1058f0b3d6163e2bcab8ec413127777d5d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMEZFOjM0QTc5RDo1MjcwQjI6NzA3OEMzOjZCMDVFMTdCIiwidmlzaXRvcl9pZCI6IjU4Mjg4MTA5NDIyMzgyODYyMDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1ff27b5c66390f5e04c4524bbe75a0d060b39b811709e2f4b8a2b49609bbf264 |
| hovercard-subject-tag | issue:2117865161 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/josegonzalez/python-github-backup/244/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9ee2afa5e66481d54dfd1c9414daa08826040c2d4249f8100014cbd85e48901f/josegonzalez/python-github-backup/issues/244 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9ee2afa5e66481d54dfd1c9414daa08826040c2d4249f8100014cbd85e48901f/josegonzalez/python-github-backup/issues/244 |
| og:image:alt | Status quo At the moment, incremental backups always use the last update of the backup as a since date, even if the last backup failed. This is documented as a known issue. Proposed feature The beh... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lukasbestle |
| hostname | github.com |
| expected-hostname | github.com |
| None | ab9d6b164c6e5b32656ef80f1a302b2dafee4e4c9360ef3fced66da06fb522fa |
| turbo-cache-control | no-preview |
| go-import | github.com/josegonzalez/python-github-backup git https://github.com/josegonzalez/python-github-backup.git |
| octolytics-dimension-user_id | 65675 |
| octolytics-dimension-user_login | josegonzalez |
| octolytics-dimension-repository_id | 14876085 |
| octolytics-dimension-repository_nwo | josegonzalez/python-github-backup |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14876085 |
| octolytics-dimension-repository_network_root_nwo | josegonzalez/python-github-backup |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2db8c3558610af6beef9310dcf5537e201a6e5fb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width