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: tutorials/backup-dedicated-server-s3-duplicity/index.mdx
+64-94Lines changed: 64 additions & 94 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ tags: duplicity backup gpg s3
9
9
categories:
10
10
- object-storage
11
11
dates:
12
-
validation: 2024-10-15
12
+
validation: 2025-04-24
13
13
posted: 2018-10-13
14
14
---
15
15
@@ -52,13 +52,8 @@ In this step, we install the various software needed. As well as installing Dupl
52
52
Run the following command to update the APT package manager, upgrade the software already installed on the server and download and install Duplicity and the other required software:
2. Add the following lines to `.scw-configrc`. Make sure you replace the necessary values with the details of your Scaleway API key, Object Storage bucket, and GPG key. You also need to enter a path to the desired backup folder:
162
+
2. Create a config file `~/.scw-backup.env`. Make sure you replace the necessary values with the details of your Scaleway API key, Object Storage bucket, and GPG key. You also need to enter a path to the folder you want to back up:
2. Run the script `./scw-backups.sh` to make sure the configuration is correctly set. Check the Object Storage bucket on the [Scaleway console](https://console.scaleway.com) to see the backup files, or examine the logs with the following command:
225
+
2. Make the script executable:
226
+
```bash
227
+
chmod +x ~/scw-backup.sh
228
+
```
229
+
3. Run the script `./scw-backups.sh` to make sure the configuration is correctly set. Check the Object Storage bucket on the [Scaleway console](https://console.scaleway.com) to see the backup files, or examine the logs with the following command:
252
230
```bash
253
231
cat /var/log/duplicity/logfile-recent.log
254
232
```
@@ -260,39 +238,31 @@ Duplicity also allows you to recover a backup. We will create a script to make t
260
238
1. Add the following script to `scw-restore.sh`:
261
239
```bash
262
240
#!/bin/bash
263
-
source<FULL PATH TO>/.scw-configrc
264
-
265
-
if [ $#-lt 2 ];then
266
-
echo -e "Usage $0 <time or delta> [file to restore] <restore to>
267
-
Exemple:
268
-
\t$ $0 2018-7-21 recovery/ ## recovers * from closest backup to date
0 commit comments