Welcome to Centmin Mod Community
Become a Member

Beta Branch addons/rclone.sh separate copyssl and syncssl options added

Discussion in 'Centmin Mod Github Commits' started by eva2000, Oct 30, 2016.

  1. eva2000

    eva2000 Administrator Staff Member

    30,194
    6,789
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,144
    Local Time:
    12:19 PM
    Nginx 1.13.x
    MariaDB 5.5
  2. eva2000

    eva2000 Administrator Staff Member

    30,194
    6,789
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,144
    Local Time:
    12:19 PM
    Nginx 1.13.x
    MariaDB 5.5
    Example for copyssl

    for Dropbox
    Code (Text):
    ./rclone.sh copyssl dropbox1
    remote = dropbox1
    
    copy /usr/local/nginx/conf/ssl to cloud storage remote dropbox1
    https://community.centminmod.com/posts/39071/
    
    rclone copy /usr/local/nginx/conf/ssl dropbox1:centos7.localdomain/copy-nginxconf-ssl
    2016/10/30 20:27:45 Dropbox root 'centos7.localdomain/copy-nginxconf-ssl': Waiting for checks to finish
    2016/10/30 20:27:45 Dropbox root 'centos7.localdomain/copy-nginxconf-ssl': Waiting for transfers to finish
    2016/10/30 20:27:48
    Transferred:    224 Bytes (44 Bytes/s)
    Errors:                 0
    Checks:                 0
    Transferred:            1
    Elapsed time:          5s
    
    
    Total Rclone Copy SSL Time: 5.051761170 seconds
    

    For Google Drive
    Code (Text):
    ./rclone.sh copyssl gdrive1
    remote = gdrive1
    
    copy /usr/local/nginx/conf/ssl to cloud storage remote gdrive1
    https://community.centminmod.com/posts/39071/
    
    rclone copy /usr/local/nginx/conf/ssl gdrive1:centos7.localdomain/copy-nginxconf-ssl
    2016/10/30 20:28:02 Google drive root 'centos7.localdomain/copy-nginxconf-ssl': Waiting for checks to finish
    2016/10/30 20:28:02 Google drive root 'centos7.localdomain/copy-nginxconf-ssl': Waiting for transfers to finish
    2016/10/30 20:28:04
    Transferred:    224 Bytes (30 Bytes/s)
    Errors:                 0
    Checks:                 0
    Transferred:            1
    Elapsed time:        7.3s
    
    
    Total Rclone Copy SSL Time: 7.374108217 seconds
    

    For OneDrive
    Code (Text):
    ./rclone.sh copyssl onedrive1
    remote = onedrive1
    
    copy /usr/local/nginx/conf/ssl to cloud storage remote onedrive1
    https://community.centminmod.com/posts/39071/
    
    rclone copy /usr/local/nginx/conf/ssl onedrive1:centos7.localdomain/copy-nginxconf-ssl
    2016/10/30 20:28:14 One drive root 'centos7.localdomain/copy-nginxconf-ssl': Waiting for checks to finish
    2016/10/30 20:28:14 One drive root 'centos7.localdomain/copy-nginxconf-ssl': Waiting for transfers to finish
    2016/10/30 20:28:15
    Transferred:    224 Bytes (40 Bytes/s)
    Errors:                 0
    Checks:                 0
    Transferred:            1
    Elapsed time:        5.5s
    
    
    Total Rclone Copy SSL Time: 5.516254221 seconds


    upload_2016-10-31_6-34-11.png

    upload_2016-10-31_6-37-27.png

    upload_2016-10-31_6-36-10.png
     
    Last edited: Oct 31, 2016
  3. eva2000

    eva2000 Administrator Staff Member

    30,194
    6,789
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,144
    Local Time:
    12:19 PM
    Nginx 1.13.x
    MariaDB 5.5
    How this can be used is if you want to backup your nginx ssl certificates at /usr/local/nginx/conf/ssl to cloud storage like dropbox, google drive and onedrive you can use addons/rclone.sh outlined at Beta Branch - addons/rclone.sh client for syncing to remote cloud storage providers | Centmin Mod Community and the new copyssl or syncssl options in a cronjob to run

    where remote = dropbox1
    Code (Text):
    13 3 * * * /usr/local/src/centminmod/addons/rclone.sh copyssl dropbox1 >/dev/null 2>&1

    Listing remote copy-nginxconf-ssl directory and files in copy-nginxconf-ssl/newdomain2.com on dropbox remote = dropbox1
    Code (Text):
    rclone lsd dropbox1:centos7.localdomain/copy-nginxconf-ssl
               0 0001-01-01 00:00:00        -1 newdomain2.com
    2016/10/30 22:44:37
    Transferred:      0 Bytes (0 Bytes/s)
    Errors:                 0
    Checks:                 0
    Transferred:            0
    Elapsed time:        1.1s

    Code (Text):
    rclone lsl dropbox1:centos7.localdomain/copy-nginxconf-ssl/newdomain2.com
          424 2016-10-30 22:44:05.000000000 dhparam.pem
         1704 2016-10-30 22:44:03.000000000 newdomain2.com.key
           45 2016-10-30 22:44:06.000000000 hpkp-info-primary-pin.txt
         1127 2016-10-30 22:44:03.000000000 newdomain2.com.crt
          964 2016-10-30 22:44:03.000000000 newdomain2.com.csr
         1704 2016-10-30 22:44:03.000000000 newdomain2.com-backup.key
          964 2016-10-30 22:44:04.000000000 newdomain2.com-backup.csr
           45 2016-10-30 22:44:05.000000000 hpkp-info-secondary-pin.txt
    2016/10/30 22:46:11
    Transferred:      0 Bytes (0 Bytes/s)
    Errors:                 0
    Checks:                 8
    Transferred:            0
    Elapsed time:        1.2s
    
     
    Last edited: Oct 31, 2016