#!/bin/bash
# Your password parameters (remember to change)
MAIN_PASS="YourSuperStrongPasswordHere"
SALT_PASS="SomeOptionalSaltHere"
# Original remote backend name (path to the folder containing crypt, e.g. dropbox:rclone_crypt)
REMOTE_BASE="Your_Remote:Your_Real_Path"
# New remote crypt name
CRYPT_NAME="Your_Remote_Crypt_Name"
# Create remote crypt with base32768, strong encryption and long filename hash
rclone config create "$CRYPT_NAME" crypt \
remote="$REMOTE_BASE" \
filename_encryption=standard \
filename_encoding=base32768 \
directory_name_encryption=true \
long_filename=hash \
password="$(rclone obscure "$MAIN_PASS")" \
password2="$(rclone obscure "$SALT_PASS")"
# Check the newly created remote
rclone config show "$CRYPT_NAME"