11.Nas_1


새창 작성 수정 목록 링크 Edit G카랜다 HDD HDD HDD 게시물 주소 복사


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 1,2



    office view

    관련자료

    댓글목록

    profile_image

    맥가이버79790님의 댓글

    no_profile 맥가이버79790 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 아이피 (210.♡.107.106) 작성일

    ㄳㅎㄴㄷ


    새창 작성 수정 목록 링크 Edit G카랜다 HDD HDD HDD 게시물 주소 복사




    Total 1,753 / 76 Page
    [ MiBox3-EddyLab에디션 셋탑 Recovery 로 부팅 하기 성공 ] 댓글 1

    MiBox3-EddyLab에디션 셋탑 Recovery 로 부팅 하기카페홈에서 scrcpy 파일 다운로드 디랙토리 작성 복사 합니다https://…

    [ 펌자료)Linux에서 바인드 마운트 및 심볼릭 링크를 사용하는 방법 ]

    Linux에서 바인드 마운트 및 심볼릭 링크를 사용하는 방법Advertisement리눅스에는 많은 평범한 것들이 있습니다.많은 사용자가 그 중 …

    [ ● ESxi 스토리지 의 데이터스토어 브라우즈에서 디랙토리 이름변경 은 안되어 터미널 ssh로 변경 가능 … ]

    ●ESxi 스토리지 의 데이터스토어 브라우즈에서 디랙토리 이름변경은 안되어 터미널 ssh로 변경 가능 합니다- 저장폴더 이름을 변경mv 파일1 …

    [ vmware iso 파일 booting이 되지 않네요 해결 방법 ]

    vmware REMIXOS... iso 파일 booting이 되지 않네요 아래와같이 부팅 되지 않습니다> UTRAIOS를 설치하여 부팅되는…

    [ ???에서 제공하는 tvheadend 구문 ]

    1. 이용환경 : 설치 기기 / (Docker or Native) 표시  예) 시놀 916+ / 도커  라즈베리파이4 / native  Core…

    [ 작업)Ubuntu 18.04에 LAMP ( Apache2, MySQL , PHP 7) 설치하는 방법2_apt… ]

    3. PHP 설치대부분의 웹서버는 PHP 같은 서버 사이드 스크립트 언어(Server-side scripting)를 지원합니다.단순한 HTML …

    [ 시스템 파티션이 충돌합니다" 이 문구 문의 드립니다. ]

    시스템 파티션이 충돌합니다" 이 문구 문의 드립니다.◎ ■ ▶ ☞ ♠ 정보찾아 공유 드리며 출처는 링크 참조 바랍니다. https://11q.k…

    [ Termux 원격 액세스 ]

    Termux 원격 액세스Termux는 몇 가지 일반적인 도구를 사용하여 원격 장치에 액세스 할 수 있습니다. Termux를 실행하는 장치를 원격…


    ♥간단_메모글♥


    최근글


    새댓글



    PHP 안에 HTML ☞ 홈페이지 화면갱신 시간은 ♨
    ▶ 2024-06-03 06:06:34

    오늘의 홈 현황


    • 현재 접속자♨ 622 명
    • 오늘 가입자※ 0 명
    • 어제 가입자※ 6 명
    • 주간 가입자※ 11 명
    • 오늘 방문자 1,240 명
    • 어제 방문자 2,290 명
    • 최대 방문자 13,042 명
    • 전체 방문자 4,356,775 명
    • 전체 게시물※ 8,616 개
    • 전체 댓글수※ 24,681 개
    • 전체 회원수 11,008 명

    QR코드


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

    알림 0








    최신글↑