You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/backup/rsnapshot_backup.md
+81-8Lines changed: 81 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,11 @@
1
1
---
2
-
3
2
title: Backup Solution - Rsnapshot
4
-
5
3
author: Steven Spencer
6
-
7
4
contributors: Ezequiel Bruni
8
-
9
-
tested with: 8.5, 8.6
10
-
5
+
tested with: 8.5, 8.6, 9.0
11
6
tags:
12
7
- backup
13
8
- rsnapshot
14
-
15
9
---
16
10
17
11
# Backup Solution - Rsnapshot
@@ -33,7 +27,7 @@ _rsnapshot_ uses `rsync` and is written entirely in perl with no library depende
33
27
34
28
This documentation covers the installation of _rsnapshot_ on Rocky Linux only.
35
29
36
-
## Installing Rsnapshot
30
+
## Rocky Linux 8.6 - Installing Rsnapshot
37
31
38
32
All commands shown here are from the command-line on your server or workstation unless otherwise noted.
39
33
@@ -74,6 +68,85 @@ Total download size: 543 k
74
68
Installed size: 1.2 M
75
69
Is this ok [y/N]: y
76
70
```
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
+

95
+
3. Right-click on the "Download ZIP" and copy the link location
96
+

97
+
4. Use `wget` or `curl` to download the copied link. Example:
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.
This covers copying the configuration file over. The section below on "Configuring rsnapshot" will cover the configuration for _rsnapshot_.
149
+
77
150
## Mounting A Drive or Filesystem For Backup
78
151
79
152
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