{"id":18352050,"url":"https://github.com/MariaDBJones/LogicalIncremental","last_synced_at":"2025-04-06T11:32:43.918Z","repository":{"id":175303394,"uuid":"471786010","full_name":"MariaDBJones/LogicalIncremental","owner":"MariaDBJones","description":"How to create a logical incremental backup","archived":false,"fork":false,"pushed_at":"2023-06-14T14:33:08.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-15T02:42:59.024Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/MariaDBJones.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":"2022-03-19T18:53:56.000Z","updated_at":"2022-04-12T17:44:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"1f7313e5-e135-4536-b551-6211a6ae10f9","html_url":"https://github.com/MariaDBJones/LogicalIncremental","commit_stats":null,"previous_names":["sylvaina77/logicalincremental","mariadbjones/logicalincremental"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MariaDBJones%2FLogicalIncremental","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MariaDBJones%2FLogicalIncremental/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MariaDBJones%2FLogicalIncremental/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MariaDBJones%2FLogicalIncremental/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MariaDBJones","download_url":"https://codeload.github.com/MariaDBJones/LogicalIncremental/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247478152,"owners_count":20945258,"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-05T21:34:33.908Z","updated_at":"2025-04-06T11:32:43.906Z","avatar_url":"https://github.com/MariaDBJones.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# LogicalIncremental\nHow to : logical incremental backup\n\nSteps : \n\nstep1 : \ntake a logical full backup with replication coordinates\nexample : \nmariadb-dump --user=\u003cUSER\u003e --password=\u003cPASSWORD\u003e --single transaction --master-data --gtid --all-databases \u003e /data/backup/dbs.sql\n\nstep2 :\nextract backup coordinate from CHANGE MASTER TO command : filename_bkp + position_bkp + gtid_bkp\n  \nstep3 :\nget actual server coordinates : filename_end + position_end + gtid_end\n\nstep4 :\nuse mariadb-binlog to generate the sql statements between both coordinates into file \nexample : \nmariadb-binlog --start-position=position_bkp filename_bkp .... \"filename_end-1\" \u003e incremental_file\nmariadb-binlog --stop-position=position_end finalenmae_end \u003e\u003e incremental_file\n  \nstep5 :\nadd CHANGE MASTER TO command with end coordinates\n  \nOption: GTID\nif incremental launched with --gtid, use gtid instead of filename + position. allows for incremental backup to be taken on any (even a different one) node of a async/virtually sync replication cluster or even a maxscale binlog router.\n\nbash pseudo code to find GTID on different backup server :   \n  \n  for file in `mysql -e -B --raw \"show binary logs\" | cut -f1` \ndo\n  filename_begin + position_begin:  mysql -e -B --raw 'show binlog events in \"$file\"' | grep \" GTID gtid_bkp\" | cut -f1,2\ndone\n  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMariaDBJones%2FLogicalIncremental","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMariaDBJones%2FLogicalIncremental","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMariaDBJones%2FLogicalIncremental/lists"}