11.Nas_1


phpmyadmin_sql_backup.py 자동화 백업


  • 링크

  • 첨부

  • 컨텐츠 정보


    본문

    phpmyadmin_sql_backup.py

    phpmyadmin_sql_backup.py "http://www.example.com/phpmyadmin/" your_user your_password

    phpmyadmin_sql_backup.py "http://www.example.com/phpmyadmin/" your_user your_password --exclude-dbs mydb2,mydb4 --prepend-date --basename example_dump --output-directory /tmp --compression zip

    데이터베이스 mydb2및 mydb4제외 된 압축 된 덤프 , 이름 기본 example_dump및 앞에 추가 된 UTC 날짜 /을 디렉토리 time- /tmp에 다운로드합니다 (예 : /tmp/2016-03-11--15-19-04-UTC_example_dump.zip.

    phpmyadmin_sql_backup.py "https://11q.kr/phpmyadmin/" user password --exclude-dbs mydb2,mydb4 --prepend-date --basename 11q_kr --output-directory /volumeUSB2
    --compression zip

    phpMyAdmin 웹 인터페이스 를 통해 SQL 백업 다운로드를 자동화 하는 Python 3 펼쳐보기 .

    이는 웹 호스팅 제공 업체가 콘솔에 대한 액세스 권한을 부여하지 않지만 (용 mysqldump) 데이터베이스 백업을 자동화하려는 경우 (수동으로 브라우저를 사용할 필요없이) 유용합니다.

    Linux 및 Windows에서 Python 3.4 이상 및 다음 버전의 phpMyAdmin으로 테스트되었습니다. 4.3.x - 4.8.x, 5.0.0

    참고 : phpMyAdmin의 웹 인터페이스는 변경 되어이 펼쳐져 중단 될 수 있습니다. 이 문제가 발생하면 버그 보고서 (사용중인 phpMyAdmin 버전 포함)을 출시합니다.



    usage: phpmyadmin_sql_backup.py [-h] [-o OUTPUT_DIRECTORY] [-p]
                                    [-e EXCLUDE_DBS] [-s SERVER_NAME]
                                    [--compression {none,zip,gzip}]
                                    [--basename BASENAME] [--timeout TIMEOUT]
                                    [--overwrite-existing]
                                    [--prefix-format PREFIX_FORMAT] [--dry-run]
                                    [--http-auth HTTP_AUTH]
                                    URL USERNAME PASSWORD
    
    Automates the download of SQL dump backups via a phpMyAdmin web interface.
    
    positional arguments:
      URL                   phpMyAdmin login page url
      USERNAME              phpMyAdmin login username
      PASSWORD              phpMyAdmin login password
    
    optional arguments:
      -h, --help            show this help message and exit
      -o OUTPUT_DIRECTORY, --output-directory OUTPUT_DIRECTORY
                            output directory for the SQL dump file (default: the
                            current working directory)
      -p, --prepend-date    prepend current UTC date & time to the filename; see
                            the --prefix-format option for custom formatting
      -e EXCLUDE_DBS, --exclude-dbs EXCLUDE_DBS
                            comma-separated list of database names to exclude from
                            the dump
      -s SERVER_NAME, --server-name SERVER_NAME
                            mysql server hostname to supply if enabled as field on
                            login page
      --compression {none,zip,gzip}
                            compression method for the output file - must be
                            supported by the server (default: none)
      --basename BASENAME   the desired basename (without extension) of the SQL
                            dump file (default: the name given by phpMyAdmin); you
                            can also set an empty basename "" in combination with
                            --prepend-date and --prefix-format
      --timeout TIMEOUT     timeout in seconds for the requests (default: 60)
      --overwrite-existing  overwrite existing SQL dump files (instead of
                            appending a number to the name)
      --prefix-format PREFIX_FORMAT
                            the prefix format for --prepend-date (default:
                            "%Y-%m-%d--%H-%M-%S-UTC_"); in Python's strftime
                            format. Must be used with --prepend-date to be in
                            effect
      --dry-run             dry run, do not actually download any file
      --http-auth HTTP_AUTH
                            Basic HTTP authentication, using format
                            "username:password"
    
    Written by Christoph Haunschmidt et al., version: 2019-05-07.1
    

    phpmyadmin_sql_backup.py "http://www.example.com/phpmyadmin/" your_user your_password
    

    .sql모든 데이터베이스 의 일반 텍스트 백업을 현재 작업 디렉토리에 다운로드합니다.


    phpmyadmin_sql_backup.py "http://www.example.com/phpmyadmin/" your_user your_password --exclude-dbs mydb2,mydb4 --prepend-date --basename example_dump --output-directory /tmp --compression zip
    

    데이터베이스 mydb2및 mydb4제외 된 압축 된 덤프 , 기본 이름 example_dump및 앞에 추가 된 UTC 날짜 / 시간을 디렉토리 /tmp에 다운로드합니다 (예 : /tmp/2016-03-11--15-19-04-UTC_example_dump.zip.

    요구 사항

    Windows 사용자를위한 참고 사항 : 기본적으로 요구 사항을 설치할 수 있지만 Windows 10을 사용하는 경우 Linux 용 Windows 하위 시스템 을 사용하는 것이 더 쉽습니다.

    변경 로그

    현재는 변경 로그가 없습니다. 현재 가장 좋은 방법은 커밋 메시지를 읽는 것입니다.

    ■ ▶ ☞ 정보찾아 공유 드리며 출처는 링크 참조 바랍니다 ♠ . ☞ 본자료는 https://11q.kr 에 등록 된 자료 입니다♠.

    뷰PDF add1,add2



    관련자료

    댓글 1


    전체 1,749 / 17 페이지
    전체 1,749 / 17 페이지



    ♥간단_메모글♥


    최근글


    새댓글



    PHP 안에 HTML ☞ 홈페이지 화면갱신 시간은 ♨
    ▶ 2024-05-20 04:50:42

    오늘의 홈 현황


    • 현재 접속자♨ 74 명
    • 오늘 가입자※ 0 명
    • 어제 가입자※ 2 명
    • 주간 가입자※ 12 명
    • 오늘 방문자 321 명
    • 어제 방문자 1,215 명
    • 최대 방문자 13,042 명
    • 전체 방문자 4,331,523 명
    • 전체 게시물※ 8,580 개
    • 전체 댓글수※ 24,628 개
    • 전체 회원수 10,975 명

    QR코드


    ☞ QR코드 스캔은 kakao앱 자체 QR코드

    알림 0








    최신글↑