Jottacloud rclone3/1/2023 ![]() Type the script in notepad, save it as a ‘.bat’ and run it with scheduled task. Using his tutorial, I’ve created this simple script that will run in scheduled task everyday. Pg1 have created a very nice tutorial which I will link to here. ![]() Instead of typing your password in plain text in your script, we can use the built-in function –password-command. ![]() You’ll find it here: C:\Users\USERNAME\.config\rclone\nf Create a bash script that copies files from source to dest encrypted – using ‘–password-command’ There is no way to recover them.Īnd please take a backup of your rclone config and save it somewhere safe. If you loose this password, you will loose access to your ecrypted files. To encrypt your rclone config file, type ‘rclone.exe config’ and type ‘s’.If anyone steals the config file, they will have full access to your encrypted files. You will not benefit from encrypting your files, if you dont seucre your rclone config file. Your files will look like this on the Cloud Storage. Rclone.exe copy "C:\Users\aghanim\Pictures" Encrypted: -vv To copy to files encrypted to cloud storage, use this command rclone.exe copy source:path destination:path If you use sync, and you delete files on your local drive, the files will be deleted from the remote location next time you sync. I like to use the copy command, and not sync. Create a password for encryption, or generate random password.Choose if you want to encrypt the file names.I want to encrypt the one I made earlier and I want the files to be saved to a folder called ‘encrypted’, so I type ‘ Remote:Encrypyted’. Choose which remote location you want to encrypt.From the list, choose nr 10, or “crypt”.Type ‘rclone.exe config’ and type ‘n’ and hit enter.Rclone uses symmectric key encryption where a password is used to generate real encryption key. Now that you have created a remote location you want to encrypt the data that is sent to your cloud storage. You will now see that you have a new remote location under ‘Current remotes’. Review the remote settings and say ‘y’.Say ‘n’ when asked if this is a team drive.You will now be asked to authenticate yourself on Google Drive and give Rclone access to your drive.Press ‘n’ when asked about advanced config.Leave service account credentials blank.I will give ‘Full access to all files, excluding application data folder’ Give Rclone the apporpriate permissions.If you created your own Client ID, paste the Client secret that you got from google.For the sake of this tutorial, I will use the default one. This will give you low performance because the key is shared and Googles default quota is 10 transactions per second. You can create your own by visiting the link in the config, or just press enter to use the default one. You will now be asked to provide a Client ID. ![]() Choose which provider you want to use.Type ‘rclone.exe config’ and press ‘n’ for New remote.Open up CMD in priviledged mode and CD into the Rclone folder.Download and unpack Rclone to your C:\ drive.Create a bash script that copies files from source to dest encrypted – using ‘–password-command’. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |