Discover Centmin Mod today
Register Now

Upgrade Borg backup

Discussion in 'Add Ons' started by cloud9, Jul 11, 2022.

  1. cloud9

    cloud9 Premium Member Premium Member

    435
    118
    43
    Oct 6, 2015
    England
    Ratings:
    +218
    Local Time:
    1:48 AM
    1.25.3
    10.6.x
    @eva2000

    How about having the option/ability to backup directly to dropbox ?


    We already have the dropbox link with the ability to send logs to dropbox
     
  2. eva2000

    eva2000 Administrator Staff Member

    55,903
    12,281
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,868
    Local Time:
    10:48 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    I am assuming you're referring to private Centmin Mod Premium member's available addons/borgbackup.sh script? As you posted this on the public subforums :)

    There's a limited size for dropbox log sending so wouldn't be suited to large backup files for that feature for https://community.centminmod.com/threads/using-dropbox-to-share-server-files.22327/

    However for using Rclone method of sending to dropbox that is possible https://community.centminmod.com/threads/sending-nginx-upgrade-logs-to-dropbox-via-rclone.22402/ you just need to setup a separate new rclone remote instead of the one outlined dropbox1 i.e. new remote named cmm-backups or something and then manually export your borgbackup tar archive via borg export-tar command to send it.

    borg export-tar to a zstd compressed tar archive file the borg repo named = conf.d-080719-131746 which contains your Centmin Mod Nginx Nginx vhost config files usually located at /usr/local/nginx/conf/conf.d will create ar backup at
    conf.d-080719-131746.tar.zst
    Code (Text):
    borg export-tar --tar-filter="zstd -6 --rsyncable" /home/borgbackups::conf.d-080719-131746 conf.d-080719-131746.tar.zst
    

    Then send
    conf.d-080719-131746.tar.zst to dropbox via rclone remote cmm-backup you created earlier
    Code (Text):
    /usr/sbin/rclone copy conf.d-080719-131746.tar.zst cmm-backups:

    Just write a wrapper shell script to run the borg export-tar command and then via rclone method send the backups