Skip to content

Streamed Backup

Overview

Streamed Backup is a Saltbox module that performs a backup of your Saltbox managed data, backing up directly to the remote destination.


The standard backup role will tar up all the directories in /opt, then once that operation is complete, transfer all those tar archives to an rclone/rsync destination.

Perhaps you are on a system that is space-constrained and does not allow this.

backup2 supports only rclone targets, and will do the tar operation straight to the rclone destination, directory by directory, without requiring the intermediate step of writing the archive to the local disk.

It will be far less performant than writing the tar archives to a local disk, but exists for use in the event that doing so is not possible.

Role Defaults

Use the Inventory to customize variables. (1)

  1. Example override

    backup2_google_template: "custom_value"
    
backup2_google_template
# Type: string
backup2_google_template: '--drive-chunk-size="{{ backup_rclone_drive_chunk_size }}" --drive-stop-on-upload-limit'
backup2_dropbox_template
# Type: string
backup2_dropbox_template: '--dropbox-chunk-size="{{ backup_rclone_dropbox_chunk_size }}" --disable-http2 --dropbox-pacer-min-sleep=1000ms'
backup2_sftp_template
# Type: string
backup2_sftp_template: ""
backup2_user_agent
# Type: string
backup2_user_agent: "{{ 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36' if backup.rclone.template != 'sftp' else '' }}"
backup2_cleanup_number
# Defines how many of the archived backups to keep, so current backup is not counted in this
# Type: string
backup2_cleanup_number: "{{ backup_cleanup_number }}" # Int
backup2_cleanup_enabled
# Type: string
backup2_cleanup_enabled: "{{ backup_cleanup_enabled }}" # Bool
backup2_cleanup_custom_rclone_flags
# Type: string
backup2_cleanup_custom_rclone_flags: "{{ backup_cleanup_custom_rclone_flags }}" # String