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
+66-93Lines changed: 66 additions & 93 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,15 +52,13 @@ 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:
165
+
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 desired backup folder:
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:
228
+
2. Make the script executable:
229
+
```bash
230
+
chmod +x ~/scw-backup.sh
231
+
```
232
+
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
233
```bash
253
234
cat /var/log/duplicity/logfile-recent.log
254
235
```
@@ -260,39 +241,31 @@ Duplicity also allows you to recover a backup. We will create a script to make t
260
241
1. Add the following script to `scw-restore.sh`:
261
242
```bash
262
243
#!/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