Sign inSign up

lrgex/backarosa

By lrgex

•Updated almost 3 years ago

Automated Docker volume backup and restore to most common backends, developed by LRGEX Group

Image
0

1.5K

lrgex/backarosa repository overview

“”

⁠
Backarosa

Automated Docker volume backup and restore to most common backends, developed by LRGEX Group, powered by Duplicati and it works on both x86 and ARM architechture.

⁠List of supported backends :

1 - Mega Drive

2 - Dropbox

3 - Google Drive

4 - Local folder

and we will continue to add more!

⁠How to use Backarosa backup command ?

This section is for Backarosa backup commands only, you can find more info about restore function in the Backarosa restore section.

⁠Backup using Mega drive :

To backup your container you need to run this command

docker run -d \
-e KEEP_VERSIONS="2" \
-v <volume_name>:/source:ro \
-v /var/run/docker.sock:/var/run/docker.sock \
-e TZ="Asia/Riyadh" \
-e MEGA_DIR="path/to/folder" \
-e MEGA_EMAIL="[email protected]" \
-e MEGA_PASSWORD='Yourpassword' \
-e CRON="* * * * *" \
--restart always \
--name <insert_name> lrgex/backarosa backup


⁠Backup using Dropbox :

To backup your container, first you need to visit this link⁠ and get your DROPBOX_AUTHID, copy the token then run this command

docker run -d \
-e KEEP_VERSIONS="2" \
-v <volume_name>:/source:ro \
-v /var/run/docker.sock:/var/run/docker.sock \
-e TZ="Asia/Riyadh" \
-e DROPBOX_DIR="path/to/folder" \
-e DROPBOX_AUTHID='paste your DROPBOX_AUTHID'
-e CRON="* * * * *" \
--restart always \
--name <insert_name> lrgex/backarosa backup

⁠Backup using Google drive :

To backup your container, first you need to visit this link⁠ and get your GDRIVE_AUTHID, copy the token then run this command

docker run -d \
-e KEEP_VERSIONS="2" \
-v <volume_name>:/source:ro \
-v /var/run/docker.sock:/var/run/docker.sock \
-e TZ="Asia/Riyadh" \
-e GDRIVE_DIR="path/to/folder" \
-e GDRIVE_AUTHID='paste your DROPBOX_AUTHID' \
-e CRON="* * * * *" \
--restart always \
--name <insert_name> lrgex/backarosa backup

⁠Backup using Local Folder :

To backup your container into local folder you need to run this command

docker run -d \
-e KEEP_VERSIONS="2" \
-v <path/to/local_folder>:/backup \
-v <volume_name>:/source:ro \
-v /var/run/docker.sock:/var/run/docker.sock \
-e LOCAL_BACKUP="true" \
-e TZ="Asia/Riyadh" \
-e CRON="* * * * *" \
--restart always \
--name <insert_name> lrgex/backarosa backup			

⁠Backup options
Environments / VolumesDescription
-e KEEP_VERSIONS[optional] it will increase/decrease the number of backups versions. default is 100
-v <volume_name>:/source:roThis is related to your desired volume to be backed up e.g Sonarr:/source:ro
-v /var/run/docker.sock:/var/run/docker.sockThis is the Docker sock, we need that's to start and shutdown containers while backuping
-e TZ="Asia/Riyadh"You need to insert your timezone
-e MEGA_DIR="/path/to/folder"This is the path for the directory inside your mega drive e.g /mybackups/docker_container_backup
-e CRON="* * * * *"[optional] periodic backup using crontab format
-e DROPBOX_DIR="/path/to/folder"The path for the directory inside your Dropbox drive
-e GDRIVE_DIR="/path/to/folder"#path for the directory inside your Google Drive drive
-e DROPBOX_AUTHID='paste_Token'First you need to get your token from the link [check backup section], copy it and paste its value here
-e GDRIVE_AUTHID='paste_Token'First you need to get your token from the link [check backup section], copy it and paste its value here



⁠How to use Backarosa restore command ?

this section is for Backarosa restore commands only

⁠Restore using Mega Drive :

To restore using Mega Drive, you need to run this command :

docker run --rm \
-v <volume_name>:/source \
-e TZ="Asia/Riyadh" \
-e MEGA_DIR="/path/to/folder" \
-e MEGA_EMAIL="[email protected]" \
-e MEGA_PASSWORD="Yourpassword" \
-e RESTORE_VERSION="0" \
lrgex/backarosa restore
⁠Restore using Dropbox :

To restore using Dropbox, you need to run this command, please refer to Dropbox backup section to learn more on how to get your DROPBOX_AUTHID

docker run --rm \
-v <volume_name>:/source \
-e TZ="Asia/Riyadh" \
-e DROPBOX_DIR="/path/to/folder" \
-e DROPBOX_AUTHID='paste your DROPBOX_AUTHID' \
-e RESTORE_VERSION="0" \
lrgex/backarosa restore
⁠Restore using Google Drive :

To restore using Google Drive, you need to run this command , please refer to Google Drive backup section to learn more on how to get your GDRIVE_AUTHID

docker run --rm \
-v <volume_name>:/source \
-e TZ="Asia/Riyadh" \
-e GDRIVE_DIR="/path/to/folder" \
-e GDRIVE_AUTHID='paste your GDRIVE_AUTHID' \
-e RESTORE_VERSION="0" \
lrgex/backarosa restore
⁠Restore using Local Folder :

To restore using Local folder, you need to run this command

docker run --rm \
-v <path/to/local_folder>:/backup \
-v <volume_name>:/source \
-e LOCAL_BACKUP="true" \
-e TZ="Asia/Riyadh" \
-e RESTORE_VERSION="0" \
lrgex/backarosa restore

⁠Restore Options
Environments / VolumesDescription
-e RESTORE_VERSION="0"[Optional], use this if you want to restore to a specific backup version, default =0, you can see all versions available by using the command find instead of restore in the last command line



⁠Combining multiple commands

  • With Backarosa you can combine multiple backup commands into one, meaning you can backup your containers on both Google drive and on local folder, here is an example :

    docker run -d \
    -e KEEP_VERSIONS="2" \
    -v <volume_name>:/source:ro \
    -v <path/to/local_folder>:/backup \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -e LOCAL_BACKUP="true" \
    -e TZ="Asia/Riyadh" \
    -e GDRIVE_DIR="/path/to/folder" \
    -e GDRIVE_AUTHID='paste your DROPBOX_AUTHID' \
    -e CRON="* * * * *" \
    --restart always \
    --name <insert_name> lrgex/backarosa backup
    

Tag summary

Content type

Image

Digest

sha256:1a42e5d21…

Size

278.2 MB

Last updated

over 3 years ago

docker pull lrgex/backarosa