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

Upgrade Borg backup

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

  1. cloud9

    cloud9 Premium Member Premium Member

    431
    117
    43
    Oct 6, 2015
    England
    Ratings:
    +217
    Local Time:
    6: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

    53,142
    12,108
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,643
    Local Time:
    3:48 PM
    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