mirror of
https://github.com/rclone/rclone.git
synced 2025-12-06 00:03:32 +00:00
build: restrict the markdown languages to use for code blocks
This commit is contained in:
@@ -126,7 +126,7 @@ token = {"access_token":...}
|
||||
Now create the file named `example.yml` with a swarm stack description
|
||||
like this:
|
||||
|
||||
```yml
|
||||
```yaml
|
||||
version: '3'
|
||||
services:
|
||||
heimdall:
|
||||
@@ -295,7 +295,7 @@ Each of them should be named after its volume and have at least two
|
||||
elements, the self-explanatory `driver: rclone` value and the
|
||||
`driver_opts:` structure playing the same role as `-o key=val` CLI flags:
|
||||
|
||||
```yml
|
||||
```yaml
|
||||
volumes:
|
||||
volume_name_1:
|
||||
driver: rclone
|
||||
@@ -463,7 +463,7 @@ to inform the docker daemon that a volume is (un-)available.
|
||||
As a workaround you can setup a healthcheck to verify that the mount
|
||||
is responding, for example:
|
||||
|
||||
```yml
|
||||
```yaml
|
||||
services:
|
||||
my_service:
|
||||
image: my_image
|
||||
|
||||
@@ -3210,13 +3210,13 @@ at rest or transfer. Detailed instructions for popular OSes:
|
||||
|
||||
- Generate and store a password
|
||||
|
||||
```pwsh
|
||||
```powershell
|
||||
New-Object -TypeName PSCredential -ArgumentList "rclone", (ConvertTo-SecureString -String ([System.Web.Security.Membership]::GeneratePassword(40, 10)) -AsPlainText -Force) | Export-Clixml -Path "rclone-credential.xml"
|
||||
```
|
||||
|
||||
- Add the password retrieval instruction
|
||||
|
||||
```pwsh
|
||||
```powershell
|
||||
[Environment]::SetEnvironmentVariable("RCLONE_PASSWORD_COMMAND", "[System.Runtime.InteropServices.Marshal]::PtrToStringAuto([System.Runtime.InteropServices.Marshal]::SecureStringToBSTR((Import-Clixml -Path "rclone-credential.xml").Password))")
|
||||
```
|
||||
|
||||
|
||||
@@ -260,7 +260,7 @@ the port on the host.
|
||||
|
||||
A simple solution may be restarting the Host Network Service with eg. Powershell
|
||||
|
||||
```pwsh
|
||||
```powershell
|
||||
Restart-Service hns
|
||||
```
|
||||
|
||||
|
||||
@@ -511,7 +511,7 @@ Instructions
|
||||
your local roles-directory
|
||||
2. add the role to the hosts you want rclone installed to:
|
||||
|
||||
```yml
|
||||
```yaml
|
||||
- hosts: rclone-hosts
|
||||
roles:
|
||||
- rclone
|
||||
@@ -638,7 +638,7 @@ Example of a PowerShell command that creates a Windows service for mounting
|
||||
some `remote:/files` as drive letter `X:`, for *all* users (service will be
|
||||
running as the local system account):
|
||||
|
||||
```pwsh
|
||||
```powershell
|
||||
New-Service -Name Rclone -BinaryPathName 'c:\rclone\rclone.exe mount remote:/files X: --config c:\rclone\config\rclone.conf --log-file c:\rclone\logs\mount.txt'
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user