{"id":22870876,"url":"https://github.com/percona-lab/autotokubackup","last_synced_at":"2025-05-05T22:16:51.339Z","repository":{"id":57412987,"uuid":"81233799","full_name":"Percona-Lab/autotokubackup","owner":"Percona-Lab","description":"AutoTokBackup: A tokubackup commandline tool for running Percona TokuBackup written in Python3 ","archived":false,"fork":false,"pushed_at":"2017-03-21T14:38:23.000Z","size":31,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-05T22:16:44.680Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/Percona-Lab.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}},"created_at":"2017-02-07T17:16:59.000Z","updated_at":"2019-12-17T13:57:46.000Z","dependencies_parsed_at":"2022-08-29T15:23:20.177Z","dependency_job_id":null,"html_url":"https://github.com/Percona-Lab/autotokubackup","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Percona-Lab%2Fautotokubackup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Percona-Lab%2Fautotokubackup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Percona-Lab%2Fautotokubackup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Percona-Lab%2Fautotokubackup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Percona-Lab","download_url":"https://codeload.github.com/Percona-Lab/autotokubackup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252584333,"owners_count":21771945,"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-13T13:16:28.585Z","updated_at":"2025-05-05T22:16:51.319Z","avatar_url":"https://github.com/Percona-Lab.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nAutoTokuBackup\n====================\n\nAutoTokuBackup commandline tool written in Python 3.\nYou can use this script to automate the usage of Percona TokuBackup.\nAlso you can optionally specify which files to copy during backup process.\n\n\n\nRequirements:\n-------------\n\n    * Percona Server with enabled TokuDB engine \u0026 TokuBackup plugin\n    * Python 3 (tested version 3.5.3)\n\n\nInstalling\n-----------------\n\n    From source:\n    \n    cd /home\n    git clone https://github.com/Percona-Lab/autotokubackup.git\n    cd autotokubackup\n    python3 setup.py install\n    \n    Via pip3:\n    \n    pip3 install autotokubackup\n    \n    \u003e Python package dependencies will be installed automatically.\n    \n    \n    \nProject Structure:\n------------------\n\n    Here is project path tree:\n    \n        * backup                        -- Backup main logic goes here.(backup_calculation.py)\n\t* general_conf                  -- All-in-one config file and config reader class(generalops.py).\n    \t* setup.py                      -- Setuptools Setup file.\n    \t* tokubackup.py                 -- Commandline Tool provider script.\n    \t* /etc/tokubackup.conf          -- Main config file will be created from general_conf/tokubackup.conf file\n    \t\n\nConfiguration file:\n-------------------\n\n\t[MySQL]\n\tmysql=/usr/bin/mysql\n\tuser=root\n\tpassword=12345\n\tport=3306\n\tsocket=/var/run/mysqld/mysqld.sock\n\thost=localhost\n\tdatadir=/var/lib/mysql\n\t\n\t\n\t[Backup]\n\tbackupdir=/var/lib/tokubackupdir\n\t\n\t[Copy]\n\t# The following copy_file_x options allow you to copy various files together with your backup\n\t# Highly recommended; a copy of your my.cnf file (usually /etc/my.cnf) and any cnf files referenced from it (i.e. includedir etc.)\n\t# You can also include other files you would like to take a copy of, like for example a text report or the mysqld error log\n\t# copy_file_1=\n\t# copy_file_2=\n\t# copy_file_...=\n\t# copy_file_10=\n\t\n\t#copy_file_1=/etc/my.cnf\n\t#copy_file_2=/var/log/messages\n\t#copy_file_3=\n\t#copy_file_4=\n\t#copy_file_5=\n\t#copy_file_6=\n\t#copy_file_7=\n\t#copy_file_8=\n\t#copy_file_9=\n\t#copy_file_10=\n\n\nGeneral Usage:\n-------------\n        1. Install using mentioned methods. \n        3. Edit /etc/tokubackup.conf file to reflect your settings and start to use.\n        \n\nSample Output:\n-------------\n\n    tokubackup --help\n    Usage: tokubackup [OPTIONS]\n\n    Options:\n    --backup              Take full backup using TokuBackup.\n    --version             Version information.\n    --defaults_file TEXT  Read options from the given file\n    --help                Show this message and exit.\n\n      \n      \n    # tokubackup --version\n    Developed by Shahriyar Rzayev from Percona\n    Link : https://github.com/Percona-Lab/autotokubackup\n    Email: shahriyar.rzayev@percona.com\n    Based on Percona TokuBackup: https://www.percona.com/doc/percona-server/5.6/tokudb/toku_backup.html\n    AutoTokuBackup Version 1.1\n\n    \n    \n    # tokubackup --backup --defaults_file=/etc/tokubackup_node2.conf \n    Backup will be stored in  /var/lib/tokubackupdir/2017-02-09_20-25-40\n    Running backup command =\u003e /home/sh/percona-server/5.7.17/bin/mysql -uroot --password=msandbox --host=localhost --socket=/tmp/mysql_sandbox20194.sock -e set tokudb_backup_dir='/var/lib/tokubackupdir/2017-02-09_20-25-40'\n    mysql: [Warning] Using a password on the command line interface can be insecure.\n    Created file in backup directory -\u003e /var/lib/tokubackupdir/2017-01-31_14-15-46/mysql_data_dir/__tokudb_lock_dont_delete_me_data\n    Created file in backup directory -\u003e /var/lib/tokubackupdir/2017-01-31_14-15-46/mysql_data_dir/__tokudb_lock_dont_delete_me_logs\n    Created file in backup directory -\u003e /var/lib/tokubackupdir/2017-01-31_14-15-46/mysql_data_dir/__tokudb_lock_dont_delete_me_temp\n    Created file in backup directory -\u003e /var/lib/tokubackupdir/2017-01-31_14-15-46/mysql_data_dir/log000000000006.tokulog29\n    Created file in backup directory -\u003e /var/lib/tokubackupdir/2017-01-31_14-15-46/mysql_data_dir/tokudb.rollback\n    Created file in backup directory -\u003e /var/lib/tokubackupdir/2017-01-31_14-15-46/mysql_data_dir/tokudb.environment\n    Created file in backup directory -\u003e /var/lib/tokubackupdir/2017-01-31_14-15-46/mysql_data_dir/tokudb.directory\n    Created file in backup directory -\u003e /var/lib/tokubackupdir/2017-01-31_14-15-46/mysql_data_dir/tc.log\n    Created file in backup directory -\u003e /var/lib/tokubackupdir/2017-01-31_14-15-46/mysql_data_dir/client-key.pem\n    Created file in backup directory -\u003e /var/lib/tokubackupdir/2017-01-31_14-15-46/mysql_data_dir/server-cert.pem\n    Created file in backup directory -\u003e /var/lib/tokubackupdir/2017-01-31_14-15-46/mysql_data_dir/server-key.pem\n    Created file in backup directory -\u003e /var/lib/tokubackupdir/2017-01-31_14-15-46/mysql_data_dir/ca.pem\n    Created file in backup directory -\u003e /var/lib/tokubackupdir/2017-01-31_14-15-46/mysql_data_dir/ca-key.pem\n    Created file in backup directory -\u003e /var/lib/tokubackupdir/2017-01-31_14-15-46/mysql_data_dir/auto.cnf\n    Completed - OK\n\n\nSupplementary Files\n-------------------\n\nThe MySQL Global and Session variable values will be stored in backup directory. \nIf you specify some files to copy in configuration file, they will be stored inside 'copied_files' directory.\n\n    # ls -l 2017-02-09_20-25-40/\n    \n      copied_files            - Directory for copied files.\n      global_variables        - File for MySQL global variables. \n      mysql_data_dir          - Directory for copied MySQL datadir.\n      session_variables       - File for MySQL session variables. \n      tokubackup_binlog_info  - File for storing binary log position.\n      tokubackup_slave_info   - File for storing slave info.\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpercona-lab%2Fautotokubackup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpercona-lab%2Fautotokubackup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpercona-lab%2Fautotokubackup/lists"}