专属域名
文档搜索
轩辕助手
Run助手
邀请有礼
返回顶部
快速返回页面顶部
收起
收起工具栏
轩辕镜像 官方专业版
轩辕镜像 官方专业版轩辕镜像 官方专业版官方专业版
首页个人中心搜索镜像

交易
充值流量我的订单
工具
提交工单镜像收录一键安装
Npm 源Pip 源Homebrew 源
帮助
常见问题
其他
关于我们网站地图

官方QQ群: 1072982923

pranasnet/sqlbak Docker 镜像 - 轩辕镜像 | Docker 镜像高效稳定拉取服务

热门搜索:openclaw🔥nginx🔥redis🔥mysqlopenjdkcursorweb2apimemgraphzabbixetcdubuntucorednsjdk
sqlbak
pranasnet/sqlbak
pranasnet
Backup, monitor and restore SQL Server, MySQL and PostgreSQL from the web
8 次收藏下载次数: 0状态:社区镜像维护者:pranasnet仓库类型:镜像最近更新:27 天前
轩辕镜像,加速的不只是镜像。点击查看
镜像简介版本下载
轩辕镜像,加速的不只是镜像。点击查看

What is SqlBak?

SqlBak is an application that allows you to create database backups and send them to the cloud storage.

What does this image contain?

This Docker image contains the SqlBak application and utilities for interacting with databases, such as mysql, mysqldump, pssql, pg_dump, etc.

How to use this image?

To start working with SqlBak you need to connect the application to sqlbak.com and set up a connection to the database. You can configure the container in two ways – either by running several commands inside the container, or by passing environment variables to the container.

Setting up SqlBak with commands in a container

When starting one instance of SqlBak, it is more convenient to configure the connection by executing interactive commands using the SqlBak utility inside the container.

Run SqlBak container:

docker run --name sqlbak_container -d -v sqlbak_volume:/opt/sqlbak pranasnet/sqlbak

To link your application to sqlbak.com run the following command:

docker exec -i sqlbak_container sqlbak --register --key=[secret key] --name=[name_of_dashboard]

[secret key] – you can find it on download page

[name_of_dashboard] – specify the name you want to see in sqlbak.com/dashboard

After entering this command, the application will ask you for database connection details.

But you can set up the connection later using the following command:

docker exec sqlbak_container sqlbak --add-connection --db-type=[db_type] --host=[host] --user=[db_user] --password=[db_password]

[db_type] – database type mssql\mysql\postgresql

[host] – database network address

[db_user] – database user

[db_password] – password

Setting up using environment variables

Setting up a SqlBak container through environment variables is useful in automation scripts. To get started, you need to link the container to an account on sqlbak.com and to the database that you want to back up. Connection information must be passed in environment variables:

sqlbak_key – located on the <a href=sqlbak.com/download>download page (secret key)*

sqlbak_name – name to be displayed on sqlbak.com/dashboard

db_type – database type (mysql/postgresql/mssql)*

host – database network address*

user – user to be connected to the database

password – password for connecting to the database*

port – a port for a database connection

Variables marked with an asterisk are required. 

Please note, if the container is already connected to sqlbak.com or dbms, then the transferred environment variables will be ignored. If you need to configure an already connected container, this must be done from inside the container using the SqlBak utility.

Thus, to run the container and immediately configure it, you need to use the following command:

sudo docker run -d \ 
    -e sqlbak_key=[secret_key] \  
    -e sqlbak_name=[name-on-dashboard] \ 
    -e host=[host-name] \  
    -e db_type=[type-of-database] \ 
    -e user=[db_user] \  
    -e password=[db_password] \ 
    -v sqlbak_volume:/opt/sqlbak \  
   pranasnet/sqlbak 

Features of physical backups

Microsoft SQL Server backup and incremental backups for MySQL require file transfer between the runtime environment where the database is located and the SqlBak container. 

To use SqlBak for a Microsoft SQL Server backup, you need to create a volume for the /tmp/sqlbak directory. This directory should be shared for the container with SqlBak and the environment in which the Microsoft SQL Server is located. 

For example, if your SQL Server is on the host system, then when running the SqlBak container, specify the --volume /tmp/sqlbak:/tmp/sqlbak parameter. If your SQL Server is located in another container, then when running the container with the SQL Server, specify --volume sqlbak_backup_folder:/tmp/sqlbak and specify precisely the same for the container with SqlBak. The folder for backups will become shared for both containers.

The situation is similar for MySQL incremental backups, but only for the /var/lib/mysql/ directory. You can use --volume /var/lib/mysql:/var/lib/mysql if the MySQL server is on the host system, or create --volume mysql_inc_dir:/var/lib/mysql for both containers.

Use cases

Connecting SqlBak to amazon RDS PostgreSQL

docker run -d \
    -e sqlbak_key=[secret key] \
    -e sqlbak_name=my_rds_postgresql \
    -e db_type=postgresql \
    -e user=postgres \
    -e password=my-secret-password \
    -e host=myinstanse.rds.amazonaws.com \
    -v sqlbak_volume:/opt/sqlbak \
    --restart unless-stopped \
  pranasnet/sqlbak

Connecting SqlBak to MySQL server that is located on the host system. Volume is created to transfer backup files

docker run -d \
    -e sqlbak_key=[secret key] \
    -e sqlbak_name=postgresql \
    -e db_type=mysql \
    -e user=root \
    -e password=my-secret-password \
    -e host=localhost \
    -p 3306:3306 \
    -v /var/lib/mysql:/var/lib/mysql \
    --restart unless-stopped \
  pranasnet/sqlbak

Example of connecting to a MySQL database with the ability to make incremental backups. In this example, binlog files for incremental backups will be transferred through the db_data volume.

version: '3.3'
services:
 db_mysql:
  image: mysql
  restart: always
  environment:
    MYSQL_ROOT_PASSWORD: example
  networks:
   - overlay
  volumes:
   - db_data:/var/lib/mysql
 sqlbak:
  depends_on:
   - db_mysql
  image: pranasnet/sqlbak
  volumes:
   - db_data:/var/lib/mysql
  environment:
   sqlbak_key: [secret key]
   sqlbak_name: name_on_dashboard
   db_type: mysql
   user: root
   password: example
   host: db_mysql
  networks:
   - overlay
volumes:
 db_data:
networks:
 overlay:

SqlBak configuration together with SQL Server in docker compose file, shared volume is created between containers.

version: '3.3'
services:
 sqlbak:
  image: pranasnet/sqlbak
  volumes:
   - sqlbak_local_data:/opt/sqlbak 
   - backup_folder:/tmp/sqlbak
  environment:
   sqlbak_key: [secret key] 
   sqlbak_name: name_on_dashboard 
   db_type: mssql
   user: sa
   password: secretPassword1
   host: db
  networks:
   - overlay
 db: 
  image: mcr.microsoft.com/mssql/server:2017-CU8-ubuntu
  environment: 
   ACCEPT_EULA: Y 
   SA_PASSWORD: secretPassword1 
  volumes: 
   - backup_folder:/tmp/sqlbak 
  networks: 
   - overlay
volumes: 
 sqlbak_local_data: 
 backup_folder: 
networks: 
 overlay:
Connecting to multiple databases

SqlBak container can be connected to several databases at once. To set new connections, specify the numeral with the connection number (2.3,4 or 5) at the end of the environment variables that are responsible for connecting to the database.

Here's an example of connecting a SqlBak container to two databases at once:

version: '3.3'
services:
 sqlbak:
  image: pranasnet/sqlbak
  volumes:
   - sqlbak_local_data:/opt/sqlbak 
   - backup_folder:/tmp/sqlbak
  environment:
   sqlbak_key: [secret key]
   sqlbak_name: name_on_dashboard 
   db_type: mssql
   user: sa
   password: secretPassword1
   host: db_sql_server
   db_type2: mysql
   user2: root
   password2: example
   host2: db_mysql
   db_type3: mongo
   user3: root
   password3: example
   host3: db_mongo
  networks:
   - overlay
 db_sql_server: 
  image: mcr.microsoft.com/mssql/server:2017-CU8-ubuntu
  environment: 
   ACCEPT_EULA: Y 
   SA_PASSWORD: secretPassword1 
  volumes: 
   - backup_folder:/tmp/sqlbak 
  networks: 
   - overlay
 db_mysql:
  image: mysql
  command: --default-authentication-plugin=mysql_native_password
  restart: always
  environment:
    MYSQL_ROOT_PASSWORD: example
  networks:
   - overlay
 db_mongo:
  image: mongo
  restart: always
  environment:
   MONGO_INITDB_ROOT_USERNAME: root
   MONGO_INITDB_ROOT_PASSWORD: example
  networks:
   - overlay
volumes: 
 sqlbak_local_data: 
 backup_folder: 
networks: 
 overlay:
  
Other notes regarding container use

Since SqlBak provides regular backups, it is recommended to run the container with the parameter --restart unless-stopped.

The data necessary for the application to work is stored in the /opt/sqlbak directory, therefore, for all examples above, volume -v sqlbak_volume:/opt/sqlbak is created, the presence of this volume will allow you to update the application in the future without resetting.

In addition to initializing the container through environment variables, you can configure it using the SqlBak utility located in the container. This can be useful if you want to add multiple connections to databases, or for diagnostic purposes if errors occur during initialization through environment variables. To find out the supported commands run 

docker exec [container-id] sqlbak --help

For more details on supported parameters, see SqlBak on Linux Reference Manual

查看更多 sqlbak 相关镜像 →
chapel/chapel-gasnet-smp logo
chapel/chapel-gasnet-smp
chapel
Chapel核心镜像,重新构建时配置了CHPL_COMM=gasnet和CHPL_COMM_SUBSTRATE=smp
1 次收藏1万+ 次下载
5 天前更新
chapel/chapel-gasnet logo
chapel/chapel-gasnet
chapel
Chapel核心镜像,重新构建时启用CHPL_COMM=gasnet和GASNET_SPAWNFN=L,用于在Docker容器内模拟多区域Chapel平台。
2 次收藏1万+ 次下载
5 天前更新
github/csnet logo
github/csnet
github
CodeSearchNet项目的Docker镜像,用于提供代码搜索功能的容器化部署支持。
2.9千+ 次下载
6 年前更新
biocontainers/prank logo
biocontainers/prank
biocontainers
暂无描述
7.9千+ 次下载
6 年前更新
bitnami/tensorflow-resnet logo
bitnami/tensorflow-resnet
bitnami
Bitnami安全镜像,用于TensorFlow Serving和ResNet模型的客户端工具,支持ResNet模型预测,提供安全加固特性、非root容器支持及便捷部署流程,适用于开发和测试环境中的模型服务交互。
3 次收藏10万+ 次下载
7 个月前更新
bitnamicharts/tensorflow-resnet logo
bitnamicharts/tensorflow-resnet
bitnamicharts
Bitnami TensorFlow ResNet的Helm图表,用于在Kubernetes集群上部署TensorFlow Serving ResNet模型,支持资源配置、Prometheus监控等功能,适用于开发和生产环境的模型服务部署。
10万+ 次下载
7 个月前更新

轩辕镜像配置手册

探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式

Docker 配置

登录仓库拉取

通过 Docker 登录认证访问私有仓库

专属域名拉取

无需登录使用专属域名

K8s Containerd

Kubernetes 集群配置 Containerd

K3s

K3s 轻量级 Kubernetes 镜像加速

Dev Containers

VS Code Dev Containers 配置

Podman

Podman 容器引擎配置

Singularity/Apptainer

HPC 科学计算容器配置

其他仓库配置

ghcr、Quay、nvcr 等镜像仓库

系统配置

Linux

在 Linux 系统配置镜像服务

Windows/Mac

在 Docker Desktop 配置镜像

MacOS OrbStack

MacOS OrbStack 容器配置

Docker Compose

Docker Compose 项目配置

NAS 设备

群晖

Synology 群晖 NAS 配置

飞牛

飞牛 fnOS 系统配置镜像

绿联

绿联 NAS 系统配置镜像

威联通

QNAP 威联通 NAS 配置

极空间

极空间 NAS 系统配置服务

网络设备

爱快路由

爱快 iKuai 路由系统配置

宝塔面板

在宝塔面板一键配置镜像

需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

使用与功能问题

docker search 报错:专属域名下仅支持 Docker Hub 查询

docker search 报错问题

网页搜不到镜像:Docker Hub 有但轩辕镜像搜索无结果

镜像搜索不到

离线传输镜像:无法直连时用 docker save/load 迁移

离线传输镜像

Docker 插件安装错误:application/vnd.docker.plugin.v1+json

Docker 插件安装错误

WSL 下 Docker 拉取慢:网络与挂载目录影响及优化

WSL 拉取镜像慢

轩辕镜像是否安全?镜像完整性校验(digest)说明

镜像安全性

如何用轩辕镜像拉取镜像?登录方式与专属域名配置

如何拉取镜像

错误码与失败问题

manifest unknown 错误:镜像不存在或标签错误

manifest unknown 错误

TLS/SSL 证书验证失败:Docker pull 时 HTTPS 证书错误

TLS 证书验证失败

DNS 解析超时:无法解析镜像仓库地址或连接超时

DNS 解析超时

410 Gone 错误:Docker 版本过低导致协议不兼容

410 错误:版本过低

402 Payment Required 错误:流量耗尽错误提示

402 错误:流量耗尽

401 UNAUTHORIZED 错误:身份认证失败或登录信息错误

身份认证失败错误

429 Too Many Requests 错误:请求频率超出专业版限制

429 限流错误

Docker login 凭证保存错误:Cannot autolaunch D-Bus(不影响登录)

凭证保存错误

账号 / 计费 / 权限

免费版与专业版区别:功能、限额与使用场景对比

免费版与专业版区别

支持的镜像仓库:Docker Hub、GCR、GHCR、K8s 等列表

轩辕镜像支持的镜像仓库

拉取失败是否扣流量?计费规则说明

拉取失败流量计费

KYSEC 权限不够:麒麟 V10/统信 UOS 下脚本执行被拦截

KYSEC 权限错误

如何申请开具发票?(增值税普票/专票)

开具发票

如何修改网站与仓库登录密码?

修改网站和仓库密码

配置与原理类

registry-mirrors 未生效:仍访问官方仓库或报错的原因

registry-mirrors 未生效

如何去掉镜像名称中的轩辕域名前缀?(docker tag)

去掉域名前缀

如何拉取指定架构镜像?(ARM64/AMD64 等多架构)

拉取指定架构镜像

查看全部问题→

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

用户头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
镜像详情
...
pranasnet/sqlbak
博客公告Docker 镜像公告与技术博客
热门镜像查看热门 Docker 镜像推荐
一键安装一键安装 Docker 并配置镜像源
镜像拉取问题咨询请 提交工单,官方技术交流群:1072982923。轩辕镜像所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
镜像拉取问题咨询请提交工单,官方技术交流群:。轩辕镜像所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
商务合作:点击复制邮箱
©2024-2026 源码跳动
商务合作:点击复制邮箱Copyright © 2024-2026 杭州源码跳动科技有限公司. All rights reserved.