Comments (3)
Hi @dzoep I've had a first go at this. The --password-command is now used when setting and changing the config password.
It occurs to me that there is no programmatic way to encrypt the config file other than by going through rclone config
so maybe we should create that - this would make scripting easier - what do you think?
Please give this a go.
v1.68.0-beta.8123.46b0c7f16.fix-7859-password-command on branch fix-7859-password-command (uploaded in 15-30 mins)
from rclone.
I've implemented command line options to mananage the config file encryption
What do you think of these @dzoep ?
v1.68.0-beta.8262.b0e17c6f8.fix-7859-password-command on branch fix-7859-password-command (uploaded in 15-30 mins)
rclone config encryption set
This command sets or changes the config file encryption password.
If there was no config password set then it sets a new one, otherwise
it changes the existing config password.
Note that if you are changing an encryption password using
--password-command
then this will be called once to decrypt the
config using the old password and then again to read the new
password to re-encrypt the config.
When --password-command
is called to change the password then the
environment variable RCLONE_PASSWORD_CHANGE=1
will be set. So if
changing passwords programatically you can use the environment
variable to distinguish which password you must supply.
Alternatively you can remove the password first (with rclone config encryption remove
), then set it again with this command which may be
easier if you don't mind the unecrypted config file being on the disk
briefly.
Usage:
rclone config encryption set [flags]
Flags:
-h, --help help for set
rclone config encryption remove
Remove the config file encryption password
This removes the config file encryption, returning it to un-encrypted.
If --password-command
is in use, this will be called to supply the old config
password.
If the config was not encrypted then no error will be returned and
this command will do nothing.
Usage:
rclone config encryption remove [flags]
Flags:
-h, --help help for remove
rclone config encryption check
This checks the config file is encrypted and that you can decrypt it.
It will attempt to decrypt the config using the password you supply.
If decryption fails it will return a non-zero exit code if using
--password-command
, otherwise it will prompt again for the password.
If the config file is not encrypted it will return a non zero exit code.
Usage:
rclone config encryption check [flags]
Flags:
-h, --help help for check
from rclone.
Thank you for testing :-)
I've merged this to master now which means it will be in the latest beta in 15-30 minutes and released in v1.68
from rclone.
Related Issues (20)
- rclone sync: rclone says it removing existing excluded directories, yet it removes only files HOT 1
- Insecure single-command signed-SHA256 validation HOT 2
- bisync through Dropbox+crypt constantly critically fails due to off-by-one differences in modtime HOT 8
- snap2html
- Onedrive Personal client_id docs instructions are no longer valid HOT 1
- S3: Ceph: Uploaded object are not tagged if object is bigger than s3-upload-cutoff HOT 13
- nfsmount broken in 1.68.0 beta HOT 16
- Support OShash method HOT 2
- rclone failed to upload file to the webdav server HOT 3
- Unable to upload large files using webdav and mount HOT 1
- pCloud binary protocol HOT 1
- rsync.net isn't listed on the cloud storage providers? HOT 4
- mailru backend "invalid characters in object name" for paths containing U+0439 (cyrylic ΠΉ) on macos HOT 4
- Deprecate the current SIA backend. HOT 3
- Error on folder rename (new or existing one) HOT 1
- Publish & tag beta versions of rclone/docker-volume-rclone HOT 3
- Unable to perform server-side copy between two Azure Blob Storage accounts HOT 3
- can't set config_is_local or config_refresh_token when using rcd config/create endpoint HOT 4
- Fish shell completions error HOT 2
- completion of remote paths fails on spaces HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rclone.