Skip to content

Commit 1e5b41f

Browse files
authored
Merge pull request #849 from sspencerwire/rsnapshoton9
Add section in `rsnapshot_backup.md` for RL 9.0
2 parents 366abcd + e7f576b commit 1e5b41f

File tree

3 files changed

+81
-8
lines changed

3 files changed

+81
-8
lines changed

docs/guides/backup/images/code.png

21.8 KB
Loading

docs/guides/backup/images/zip.png

61.5 KB
Loading

docs/guides/backup/rsnapshot_backup.md

Lines changed: 81 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
---
2-
32
title: Backup Solution - Rsnapshot
4-
53
author: Steven Spencer
6-
74
contributors: Ezequiel Bruni
8-
9-
tested with: 8.5, 8.6
10-
5+
tested with: 8.5, 8.6, 9.0
116
tags:
127
- backup
138
- rsnapshot
14-
159
---
1610

1711
# Backup Solution - Rsnapshot
@@ -33,7 +27,7 @@ _rsnapshot_ uses `rsync` and is written entirely in perl with no library depende
3327

3428
This documentation covers the installation of _rsnapshot_ on Rocky Linux only.
3529

36-
## Installing Rsnapshot
30+
## Rocky Linux 8.6 - Installing Rsnapshot
3731

3832
All commands shown here are from the command-line on your server or workstation unless otherwise noted.
3933

@@ -74,6 +68,85 @@ Total download size: 543 k
7468
Installed size: 1.2 M
7569
Is this ok [y/N]: y
7670
```
71+
72+
## Rocky Linux 9.0 - Installing Rsnapshot
73+
74+
Since the release of Rocky Linux 9.0, the EPEL repository has not yet built _rsnapshot_ in RPM form. There are currently bugzilla entries referencing others who would like to have this happen, but as of now, that has not happened. The workaround is to install _rsnapshot_ from source. Because this is going to require build utilities, you'll need to install the 'Development Tools' group so that you have everything you need.
75+
76+
### Installing Development Tools and Downloading the Source
77+
78+
As stated, the first step here is to install the 'Development Tools' group:
79+
80+
```
81+
dnf groupinstall 'Development Tools'
82+
```
83+
84+
You also need a few other packages:
85+
86+
```
87+
dnf install wget unzip rsync openssh-server
88+
```
89+
90+
Next we will need to download the source files from the GitHub repository. You can do this multiple ways, but the easiest in this case is probably just to download the ZIP file from the repository.
91+
92+
1. Go to https://github.com/rsnapshot/rsnapshot
93+
2. Click on the Green "Code" button on the right
94+
![Code](images/code.png)
95+
3. Right-click on the "Download ZIP" and copy the link location
96+
![Zip](images/zip.png)
97+
4. Use `wget` or `curl` to download the copied link. Example:
98+
```
99+
wget https://github.com/rsnapshot/rsnapshot/archive/refs/heads/master.zip
100+
```
101+
5. Unzip the `master.zip` file
102+
```
103+
unzip master.zip
104+
```
105+
106+
### Building the Source
107+
108+
Now that we've got everything on our machine, the next step is to build. When we unzipped the `master.zip` file, we ended up with an `rsnapshot-master` directory. We will need to change into this for our build procedure. Note that our build is using all of the package defaults, so if you want something else, you'll need to do a little investigation. Also, these steps are directly taken from the [GitHub Installation](https://github.com/rsnapshot/rsnapshot/blob/master/INSTALL.md) page:
109+
110+
```
111+
cd rsnapshot-master
112+
```
113+
114+
Run the `authogen.sh` script to generate the configure script:
115+
116+
```
117+
./autogen.sh
118+
```
119+
120+
!!! note
121+
122+
You may get several lines that look like this:
123+
124+
```
125+
fatal: not a git repository (or any of the parent directories): .git
126+
```
127+
128+
These are not fatal.
129+
130+
Next, we need to run `configure` with the configuration directory set:
131+
132+
```
133+
./configure --sysconfdir=/etc
134+
```
135+
136+
Finally, run `make install`:
137+
138+
```
139+
sudo make install
140+
```
141+
142+
During all of this, the `rsnapshot.conf` file will be created as `rsnapshot.conf.default`. We need to copy this over to `rsnapshot.conf` and then edit it to fit what we need on our system.
143+
144+
```
145+
sudo cp /etc/rsnapshot.conf.default /etc/rsnapshot.conf
146+
```
147+
148+
This covers copying the configuration file over. The section below on "Configuring rsnapshot" will cover the configuration for _rsnapshot_.
149+
77150
## Mounting A Drive or Filesystem For Backup
78151

79152
In this step, we show how to mount a hard drive, such as an external USB hard drive, that will be used to back up your system. This particular step is only necessary if you are backing up a single machine or server, as seen in our first example below.

0 commit comments

Comments
 (0)