I need to encrypt an existing configuration file without using the interactive mode. I found this pull request enable creating encrypted config through external script invocation by czosnek16 · Pull Request #3233 · rclone/rclone · GitHub which seems to be the solution, but I don't fully understand how to encrypt my config file after exporting the RCLONE_CONFIG_PASS variable.
rclone v1.64.0 - os/version: centos 8.4.2105 (64 bit) - os/kernel: 4.18.0-305.7.1.el8_4.x86_64 (x86_64) - os/type: linux - os/arch: amd64 - go/version: go1.21.1 - go/linking: static - go/tags: none
The config file contains remotes for Google Drive, SFTP and Google Cloud Storage.
I have only attempted to run this since I would like to encrypt the whole config file:
export RCLONE_CONFIG_PASS=abc123 rclone --config .config/rclone/rclone.conf config update
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
[Drive_Remote] type = drive client_id = XXX client_secret = XXX scope = drive token = XXX team_drive = XXX root_folder_id = [GCP_Remote] type = google cloud storage client_id = XXX client_secret = XXX project_number = XXX object_acl = authenticatedRead bucket_acl = authenticatedRead location = us-central1 storage_class = REGIONAL token = XXX [SFTP_Remote] type = sftp host = XXX user = XXX pass = XXX md5sum_command = md5sum sha1sum_command = sha1sum
Command update needs 1 arguments minimum: you provided 0 non flag arguments: