SqlBak Blog

Simple SQL server backup guide for Linux

This simple guide will help you create backups of SQL Server on Linux.

SQL Server backups on Windows and Linux: what’s the difference?

The only noticeable difference is in the graphical tools.

SSMS is the main tool for SQL Server and is only available on Windows. Connecting from Windows to SQL Server on Linux is not always possible due to port security (1433). You will have to use the command line utility sqlcmd and T-SQL commands.

Read more

MySQL Command Line Backup: Top 5 CLI Utilities

Targeted at DBAs, this article offers an overview of CLI utilities for MySQL backup. The commands described can be implemented in Linux Shell (.sh) scripts, as well as in Windows cmd (.bat) and PowerShell (.ps1) scripts. In addition to creating backups, dumps and exporting data, we’ll also delve into MySQL restore commands.

The article presupposes the use of InnoDB, the default storage engine, enabling hot backups without server downtime. If not specified otherwise, you’re likely already using it. Typically, other engines would lock the tables or the entire DB during the backup.

Read more

如何在 Linux 中自动化 MySQL 数据库备份

本博客文章所述解决方案适用于任何 Linux 发行版:Ubuntu、Red Hat、Open SUSE、CentOS、Debian、Oracle Linux 等。然而,包安装命令可能会有所不同。
自动备份 MySQL 服务器数据库对于防止数据丢失至关重要。要正确自动化备份,您需要按照以下步骤执行:

  1. 创建数据库备份
  2. 压缩备份
  3. 加密压缩文件
  4. 使用 FTP、Dropbox、AWS、Google Drive 等将备份发送到云存储
  5. 收到备份结果的邮件通知
  6. 创建备份计划
  7. 删除旧备份

Read more

How to backup and restore SQL Server on Linux

In this article, we will describe how to create a backup of a SQL Server that is installed on Linux.

How does SQL Server create a backup?

You can create a SQL Server backup by running the T-SQL command BACKUP DATABASE.This command saves the backup file to a specified directory. SQL Server backups are created quickly because it requires just copying data from the database files to the backup file.

When creating a backup, you do not need to stop SQL Server or switch it to single-user mode, and the database continues to work as usual during this operation.

Read more

How to automatically upload MySQL backup to FTP on Linux

The first thing a DBA should do after deploying a database is to ensure that backups are created regularly.

But storing a backup file on the same server where the MySQL server is located would be a big mistake. Therefore, you should create a backup and put it out of the server on which MySQL is located. The simplest solution would be to transfer it to another server via FTP.

Read more

Incremental MySQL Server Backup via Binary Log

Making backups is necessary, but doing this with large databases may involve high server load and using up storage space. And only creating a backup once a day or once a week could lead to losing hours of work. So how can you make backups more often without overloading the server? Incremental backups can help you with this.

Read more