Want to subscribe to topics you're interested in?
Become a Member

Beta Branch update centmin.sh menu option 21 submenu option 11, 12, 13 in 130.00b…

Discussion in 'Centmin Mod Github Commits' started by eva2000, May 5, 2023.

  1. eva2000

    eva2000 Administrator Staff Member

    50,462
    11,661
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,082
    Local Time:
    7:45 AM
    Nginx 1.25.x
    MariaDB 10.x
    update centmin.sh menu option 21 submenu option 11, 12, 13 in 130.00beta01

    - update centmin.sh menu option 21 submenu options 11, 12, 13 for download S3 storage file to local server, transfer data file from one s3 bucket to another s3 bucket and also list all s3 buckets for a specific AWS CLI s3 profile


    Continue reading...

    130.00beta01 branch

    Support Centmin Mod


    If you find Centmin Mod useful, please help support Centmin Mod
     
  2. eva2000

    eva2000 Administrator Staff Member

    50,462
    11,661
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,082
    Local Time:
    7:45 AM
    Nginx 1.25.x
    MariaDB 10.x
    Code (Text):
    --------------------------------------------------------
         Centmin Mod Data Management       
    --------------------------------------------------------
    1).   Manage SSH Keys
    2).   Manage AWS CLI S3 Profile Credentials
    3).   Migrate Centmin Mod Data To New Centmin Mod Server
    4).   Backup Nginx Vhosts Data + MariaBackup MySQL Backups
    5).   Backup Nginx Vhosts Data Only (no MariaDB MySQL backups)
    6).   Backup MariaDB MySQL With MariaBackup Only (no Vhosts Data backups)
    7).   Backup MariaDB MySQL With mysqldump only (no Vhosts Data backups)
    8).   Transfer Directory Data To Remote Server Via SSH
    9).   Transfer Directory Data To S3 Compatible Storage
    10).  Transfer Files To S3 Compatible Storage
    11).  Download S3 Compatible Stored Data To Server
    12).  S3 To S3 Compatible Storage Transfers
    13).  List S3 Storage Buckets
    14).  Back to Main menu
    --------------------------------------------------------
    Enter option [ 1 - 14 ] 11
    --------------------------------------------------------
    

    Code (Text):
    Download S3 Compatible Stored Data To Server
    
    Description:
    This option allows you to download your S3 stored data to this server
    
    Do you want to continue [y/n]: y
    AWS CLI profile name: r2
    S3 bucket name: BUCKETNAME
    S3 endpoint URL: https://YOUR_CF_ACCOUNT_ID.r2.cloudflarestorage.com
    Remote S3 file path: master_info.log
    Local directory to download the file: /home/downloadbackup
    AWS CLI profile: r2
    S3 bucket name: BUCKETNAME
    S3 endpoint URL: https://YOUR_CF_ACCOUNT_ID.r2.cloudflarestorage.com
    Remote S3 file path: master_info.log
    Local directory: /home/downloadbackup
    Are the entered values correct? [y/n]: y
    aws s3 cp --profile r2 --endpoint-url https://YOUR_CF_ACCOUNT_ID.r2.cloudflarestorage.com s3://BUCKETNAME/master_info.log /home/downloadbackup/
    download: s3://BUCKETNAME/master_info.log to ../../../../home/downloadbackup/master_info.log
    


    Code (Text):
    ls -lAh /home/downloadbackup
    total 4.0K
    -rw-r--r-- 1 root root 1.2K May  4 19:33 master_info.log
    


    Code (Text):
    --------------------------------------------------------
         Centmin Mod Data Management       
    --------------------------------------------------------
    1).   Manage SSH Keys
    2).   Manage AWS CLI S3 Profile Credentials
    3).   Migrate Centmin Mod Data To New Centmin Mod Server
    4).   Backup Nginx Vhosts Data + MariaBackup MySQL Backups
    5).   Backup Nginx Vhosts Data Only (no MariaDB MySQL backups)
    6).   Backup MariaDB MySQL With MariaBackup Only (no Vhosts Data backups)
    7).   Backup MariaDB MySQL With mysqldump only (no Vhosts Data backups)
    8).   Transfer Directory Data To Remote Server Via SSH
    9).   Transfer Directory Data To S3 Compatible Storage
    10).  Transfer Files To S3 Compatible Storage
    11).  Download S3 Compatible Stored Data To Server
    12).  S3 To S3 Compatible Storage Transfers
    13).  List S3 Storage Buckets
    14).  Back to Main menu
    --------------------------------------------------------
    Enter option [ 1 - 14 ] 12
    --------------------------------------------------------
    

    Code (Text):
    S3 To S3 Compatible Storage Transfers
    
    Description:
    This option allows you to transfer data between two S3 compatible storage
    
    Do you want to continue [y/n]: y
    Source AWS CLI profile name: r2
    Source S3 bucket name: BUCKETNAME
    Source S3 endpoint URL: https://YOUR_CF_ACCOUNT_ID.r2.cloudflarestorage.com
    Source S3 object path: master_info.log
    Destination AWS CLI profile name: r2
    Destination S3 bucket name: BUCKETNAME2
    Destination S3 endpoint URL: https://YOUR_CF_ACCOUNT_ID.r2.cloudflarestorage.com
    Destination S3 object path: master_info.log
    Source AWS CLI profile: r2
    Source S3 bucket name: BUCKETNAME
    Source S3 endpoint URL: https://YOUR_CF_ACCOUNT_ID.r2.cloudflarestorage.com
    Source S3 object path: master_info.log
    Destination AWS CLI profile: r2
    Destination S3 bucket name: BUCKETNAME2
    Destination S3 endpoint URL: https://YOUR_CF_ACCOUNT_ID.r2.cloudflarestorage.com
    Destination S3 object path: master_info.log
    Are the entered values correct? [y/n]: y
    aws s3 cp --profile r2 --endpoint-url https://YOUR_CF_ACCOUNT_ID.r2.cloudflarestorage.com s3://BUCKETNAME/master_info.log s3://BUCKETNAME2/master_info.log
    copy: s3://BUCKETNAME/master_info.log to s3://BUCKETNAME2/master_info.log
    

    Code (Text):
    --------------------------------------------------------
         Centmin Mod Data Management       
    --------------------------------------------------------
    1).   Manage SSH Keys
    2).   Manage AWS CLI S3 Profile Credentials
    3).   Migrate Centmin Mod Data To New Centmin Mod Server
    4).   Backup Nginx Vhosts Data + MariaBackup MySQL Backups
    5).   Backup Nginx Vhosts Data Only (no MariaDB MySQL backups)
    6).   Backup MariaDB MySQL With MariaBackup Only (no Vhosts Data backups)
    7).   Backup MariaDB MySQL With mysqldump only (no Vhosts Data backups)
    8).   Transfer Directory Data To Remote Server Via SSH
    9).   Transfer Directory Data To S3 Compatible Storage
    10).  Transfer Files To S3 Compatible Storage
    11).  Download S3 Compatible Stored Data To Server
    12).  S3 To S3 Compatible Storage Transfers
    13).  List S3 Storage Buckets
    14).  Back to Main menu
    --------------------------------------------------------
    Enter option [ 1 - 14 ] 13
    --------------------------------------------------------
    

    Code (Text):
    List S3 Storage Buckets
    
    Description:
    This option will list all your S3 storage buckets registered with the AWS CLI tool
    
    Do you want to continue [y/n]: y
    Enter the AWS CLI profile name: r2
    S3 endpoint URL: https://YOUR_CF_ACCOUNT_ID.r2.cloudflarestorage.com
    aws s3 ls --profile r2 --endpoint-url https://YOUR_CF_ACCOUNT_ID.r2.cloudflarestorage.com
    2022-10-16 10:38:35 BUCKETNAME
    2023-05-01 00:03:47 BUCKETNAME2