@@ -0,0 +1,1270 @@
+#!/usr/bin/env python2%0A%0Aimport argparse%0Aimport subprocess%0Afrom string import Template%0A%0Acmd = Template(%22%22%22%0Axtrabackup --host $%7Bmysql_host%7D %5C%0A           --port $%7Bmysql_port%7D %5C%0A           --user $%7Bmysql_user%7D %5C%0A           --password $%7Bmysql_passwd%7D %5C%0A           --slave-info %5C%0A           --backup %5C%0A           --stream=tar %5C%0A            %7C gzip -c %5C%0A             %7C curl -X POST %5C%0A                    --data-binary %5C%0A                    @- %5C%0A                    'http://$%7Bxtralab_host%7D:$%7Bxtralab_port%7D/api/v0/test-db/full-backup'%0A%22%22%22.strip())%0A%0A%0Adef main():%0A    parser = argparse.ArgumentParser(description=%22full backup script%22)%0A    parser.add_argument('--mysql-host', dest='mysql_host', type=str, default='127.0.0.1')%0A    parser.add_argument('--mysql-port', dest='mysql_port', type=int, default=3306)%0A    parser.add_argument('--mysql-user', dest='mysql_user', type=str, required=True)%0A    parser.add_argument('--mysql-passwd', dest='mysql_passwd', type=str, required=True)%0A    parser.add_argument('--xtralab-host', dest='xtralab_host', type=str, required=True)%0A    parser.add_argument('--xtralab-port', dest='xtralab_port', type=int, default=80)%0A    args = parser.parse_args()%0A    subprocess.call(cmd.substitute(vars(args)), shell=True)%0A%0Aif __name__ == '__main__':%0A    main()

Add script/fullbackup.py