Skip to content

Commit

Permalink
Merge pull request #416 from bgraef/main
Browse files Browse the repository at this point in the history
add post for btrfs send recv
  • Loading branch information
bgraef authored Aug 20, 2024
2 parents a3f3561 + 470bfc9 commit 6caedb1
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
Binary file added content/posts/ol/storage/post-29/featured.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 41 additions & 0 deletions content/posts/ol/storage/post-29/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
title: "Use Btrfs Send and Recv"
date: 2024-08-20
draft: false
summary: "Learn how to use the Btrfs send and recv features to remotely back up a subvolume over SSH."
tags: ["ol", "tutorial", "ol-storage"]
showDate: true
---

## Links

:crescent_moon: [Lab](https://luna.oracle.com/lab/b8f5ee68-75fe-4790-a3ab-c7be5f5461fd)

:spiral_notepad: [Tutorial](https://docs.oracle.com/en/learn/ol-btrfs-send)

## Details

Having a backup is essential to avoid losing data. Using Btrfs and its send and recv features, we can configure secure sender and receiver systems to securely and efficiently remote backup a subvolume over SSH. Then, set up Systemd timers to perform regular, timely backups.

Note that only the changes made on the sender system are copied to the receiver system, reducing the backup facility's overhead. Since the systems use Btrfs snapshots, the disk usage for incremental backups is restricted only to the size of the changes.

### Objectives

In this tutorial, you will learn how to:

- Configure SSH to facilitate secure network-based backup
- Create a Btrfs receiver script on the receiver system
- Create a Btrfs snapshot on the sender system
- Send the Btrfs snapshot to the receiver system
- Create an incremental backup snapshot
- Create an incremental backup script
- Configure a Systemd service and timer unit for regular incremental backups

### Prerequisites

- Minimum of two Oracle Linux systems running the UEK kernel

- Each system should have Oracle Linux installed and configured with:
- A non-root user account with sudo access
- A block device attached to each system and formatted with Btrfs
- Key-based SSH, also known as password-less SSH, between the hosts

0 comments on commit 6caedb1

Please sign in to comment.