Sfoglia il codice sorgente

Rclone imporve docs + Fix typo (#3378)

* fix typo

* Improve Rclone example

* Update bin/v-add-backup-host

Co-authored-by: Alec Rust <me@alecrust.com>

---------

Co-authored-by: Alec Rust <me@alecrust.com>
Jaap Marcus 3 anni fa
parent
commit
39b8f5e7a3
2 ha cambiato i file con 27 aggiunte e 3 eliminazioni
  1. 1 1
      bin/v-add-backup-host
  2. 26 2
      docs/docs/server-administration/backup-restore.md

+ 1 - 1
bin/v-add-backup-host

@@ -298,7 +298,7 @@ if [ "$type" = 'rclone' ]; then
 			rclone delete $host:$path/hestia-backup.txt
 		fi
 	else
-		check_result "$E_CONNECT" "Rclone config does not exits"
+		check_result "$E_CONNECT" "Rclone config does not exist"
 	fi
 fi
 

+ 26 - 2
docs/docs/server-administration/backup-restore.md

@@ -108,13 +108,37 @@ Once the download and installation is complete, run `rclone config` and then `n`
 Once the config has been saved you can setup Hestia with the following command:
 
 ```bash
-v-add-backup-host 'rclone' 'config_name' '' '' 'Bucket or Folder name' ''
+v-add-backup-host 'rclone' 'remote-name' '' '' 'Bucket or Folder name' ''
 ```
 
 ::: tip
-B2 requires you to setup a bucket during the `v-add-backup-host` stage. S3 or R2 storage will work fine during the setup stage.
+B2 requires you to setup a bucket during the `v-add-backup-host` stage. S3 or R2 storage will work fine during the `rclone config` stage.
 :::
 
+For example:
+
+```bash
+rclone config
+
+Current remotes:
+
+Name Type
+==== ====
+r2 s3
+```
+
+To use the "R2" endpoint use
+
+```bash
+v-add-backup-host 'rclone' 'r2'
+```
+
+For Blackblaze use
+
+```bash
+v-add-backup-host 'rclone' 'b2' '' '' 'hestiacp'
+```
+
 ## How to change default backup folder
 
 For security reasons, symlinks are not allowed. To change the default backup folder, you can do the following: