Learn about Centmin Mod LEMP Stack today
Become a Member

Upgrade Borg backup

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

  1. cloud9

    cloud9 Premium Member Premium Member

    Oct 6, 2015
    Local Time:
    11:27 PM

    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

    May 24, 2014
    Brisbane, Australia
    Local Time:
    8:27 AM
    Nginx 1.25.x
    MariaDB 10.x
    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
    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