Synch to ProtonDrive

What is the problem you are having with rclone?

I use Debian 12 (bookworm) for my OS. The rclone in the Debian repos does not have support for Proton Drive. I have d/l'd the more recent rclone (v. 1.68) and the Debian repos won't let me use the rclone gui in those repos.

I want to (first time) upload /home to Proton Drive and thereafter sync the new or modified files from the source to Proton Drive.

Yesterday, I was logged into the web-gui and was able to upload files, but not folders or directories.

I've looked over the relevant docs. I haven't made them work to accomplish my purpose.

rclone v1.68.0
- os/version: debian 12.7 (64 bit)
- os/kernel: 6.1.0-25-amd64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.23.1
- go/linking: static
- go/tags: none```

####  Which cloud storage system are you using? (eg Google Drive)

ProtonDrive

#### The command you were trying to run (eg `rclone copy /tmp remote:tmp`)  
<!--  You should use 3 backticks to begin and end your paste to make it readable.   -->

rclone as web-gui?



#### Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
<!--  You should use 3 backticks to begin and end your paste to make it readable.   -->

Paste config here

[remoteproton]
type = protondrive
username = Scotty@protonmail.com
password = XXX
client_uid = XXX
client_access_token = XXX
client_refresh_token = XXX
client_salted_key_pass = XXX ```



#### A log from the command that you were trying to run with the `-vv` flag  
<!-- You should use 3 backticks to begin and end your paste to make it readable.  Or use a service such as https://pastebin.com or https://gist.github.com/   -->

Paste log here
rclone sync --vv

produces no content or same as rclone and bad command

sorry, confused, are you running?

  1. rclone gui in the web browser?
    or
  2. rclone sync on the command line?

rclone in gui OR in terminal.

Both, as today I cannot put a syntax together.
Mr. adsffdsa: if you can point me to a beginners how-to run rclone, I can stop taking so much of your time. I've looked over the Docs at the rclone webpage and read them, but cannot grok what to do. The webgui logs in with user: gui. That not how I want to do this. If that is all as it's in beta, I'll learn to use CLI syntax. I just haven't found a beginner's text so far.

the gui is not beta, it is experimental. currently, the gui has not been updated in three years now.

search the internet and youtube
https://www.youtube.com/results?search_query=rclone+gui

rclone sync /home remoteproton:home -vv --dry-run

Running:

rclone sync /home remoteproton:home -vv --dry-run -i

seems to run, but the -i is not showing a step-by-step terminal output. Output shows 1000s lines and when I did ctrl-c, the terminal returned:

2024/09/14 10:12:27 DEBUG : proton drive root link ID 'home': Waiting for transfers to finish
2024/09/14 10:12:27 ERROR : proton drive root link ID 'home': not deleting files as there were IO errors
2024/09/14 10:12:27 ERROR : proton drive root link ID 'home': not deleting directories as there were IO errors
2024/09/14 10:12:27 ERROR : Attempt 2/3 failed with 2 errors and: not deleting files as there were IO errors```

I've given up on using the webgui. As Debian runs so far behind lots of packages, it is better for me to learn the command lines necessary to work rclone. Thank you Linux and RCLone Community for your support.

well, you are using --dry-run, nothing for -i to do.

if you are using --dry-run, then there should be nothing to delete??

hard to know what is going on, you only posted a snippet.
missing the top 20 lines of debug output which would include the exact command and flags.

use a debug log file, something like
--log-level=DEBUG --log-file=/path/to/rclone.log

That remote: path/to is what I cannot seem to put in the correct words (commands and options). I can't get
rclone ls to run just yet.
Thank you Mr. asdfghjkl; Monkey.

the exact command is missing?, the full debug output is missing??

I apologize in ADVANCE. I do not know/understand the necessary syntax just yet.

Usage:
  rclone lsf remote:path [flags]

Flags:
      --absolute             Put a leading / in front of path names
      --csv                  Output in CSV format
  -d, --dir-slash            Append a slash to directory names (default true)
      --dirs-only            Only list directories
      --files-only           Only list files
  -F, --format string        Output format - see  help for details (default "p")
      --hash h               Use this hash when h is used in the format MD5|SHA-1|DropboxHash (default "md5")
  -h, --help                 help for lsf
  -R, --recursive            Recurse into the listing
  -s, --separator string     Separator for the items in the format (default ";")
  -t, --time-format string   Specify a custom time format, or 'max' for max precision supported by remote (default: 2006-01-02 15:04:05)

Flags for filtering directory listings (flag group Filter):
      --delete-excluded                     Delete files on dest excluded from sync
      --exclude stringArray                 Exclude files matching pattern
      --exclude-from stringArray            Read file exclude patterns from file (use - to read from stdin)
      --exclude-if-present stringArray      Exclude directories if filename is present
      --files-from stringArray              Read list of source-file names from file (use - to read from stdin)
      --files-from-raw stringArray          Read list of source-file names from file without any processing of lines (use - to read from stdin)
  -f, --filter stringArray                  Add a file filtering rule
      --filter-from stringArray             Read file filtering patterns from a file (use - to read from stdin)
      --ignore-case                         Ignore case in filters (case insensitive)
      --include stringArray                 Include files matching pattern
      --include-from stringArray            Read file include patterns from file (use - to read from stdin)
      --max-age Duration                    Only transfer files younger than this in s or suffix ms|s|m|h|d|w|M|y (default off)
      --max-depth int                       If set limits the recursion depth to this (default -1)
      --max-size SizeSuffix                 Only transfer files smaller than this in KiB or suffix B|K|M|G|T|P (default off)
      --metadata-exclude stringArray        Exclude metadatas matching pattern
      --metadata-exclude-from stringArray   Read metadata exclude patterns from file (use - to read from stdin)
      --metadata-filter stringArray         Add a metadata filtering rule
      --metadata-filter-from stringArray    Read metadata filtering patterns from a file (use - to read from stdin)
      --metadata-include stringArray        Include metadatas matching pattern
      --metadata-include-from stringArray   Read metadata include patterns from file (use - to read from stdin)
      --min-age Duration                    Only transfer files older than this in s or suffix ms|s|m|h|d|w|M|y (default off)
      --min-size SizeSuffix                 Only transfer files bigger than this in KiB or suffix B|K|M|G|T|P (default off)

Flags for listing directories (flag group Listing):
      --default-time Time   Time to show if modtime is unknown for files and directories (default 2000-01-01T00:00:00Z)
      --fast-list           Use recursive list if available; uses more memory but fewer transactions

Use "rclone [command] --help" for more information about a command.
Use "rclone help flags" for to see the global flags.
Use "rclone help backends" for a list of supported services.
Command lsf needs 1 arguments minimum: you provided 0 non flag arguments:```

**But nowhere in the above is the word "argument"**

rclone ls remoteproton: -vv

2024/09/14 13:01:04 DEBUG : rclone: Version "v1.68.0" starting with parameters ["rclone" "ls" "remoteproton:" "-vv"]
2024/09/14 13:01:04 DEBUG : Creating backend with remote "remoteproton:"
2024/09/14 13:01:04 DEBUG : Using config file from "/home/mark/.config/rclone/rclone.conf"
2024/09/14 13:01:04 DEBUG : proton drive root link ID '': Has cached credentials
2024/09/14 13:01:08 DEBUG : proton drive root link ID '': Used cached credential to initialize the ProtonDrive API
197536481 De Google Your Life   Part 2  Ad Free YouTube!   Linus Tech Tips.mp4
354973314 De-Google Your Life - Part 1 Start With Chrome.mp4
2024/09/14 13:01:11 DEBUG : 5 go routines active```

that looks fine.

Dear Mr. Random String Of Character (name):
This is me, by trial and error, guessing, without knowing what I'm doing. If I'm understanding, rclone wants to cloud store (what is the correct nomenclature for this?) bash_logout (and nothing else???). And if the only object being copies is that bash_logout, what is the command to copy all objects of /mark/home to the remoteproton?

2024/09/14 13:16:22 NOTICE: "remoteproton" refers to a local folder, use "remoteproton:" to refer to your remote or "./remoteproton" to hide this warning
2024/09/14 13:16:22 NOTICE: .face.icon: Can't follow symlink without -L/--copy-links

rclone: copy ".bash_logout"?
y) Yes, this is OK (default)
n) No, skip this
s) Skip all copy operations with no more questions
!) Do all copy operations with no more questions
q) Exit rclone now.
y/n/s/!/q> 2024/09/14 13:16:22 NOTICE: .zoom/data/com.zoom.ipc.additional_assistantapp__req: Can't transfer non file/directory
2024/09/14 13:16:22 NOTICE: .zoom/data/com.zoom.ipc.additional_assistantapp__res: Can't transfer non file/directory
2024/09/14 13:16:22 NOTICE: .zoom/data/com.zoom.ipc.assistantapp__req: Can't transfer non file/directory
2024/09/14 13:16:22 NOTICE: .zoom/data/WebViewHostMgr_req: Can't transfer non file/directory
2024/09/14 13:16:22 NOTICE: .zoom/data/com.zoom.ipc.assistantapp__res: Can't transfer non file/directory
2024/09/14 13:16:22 NOTICE: .zoom/data/WebViewHostMgr_res: Can't transfer non file/directory
2024/09/14 13:16:22 NOTICE: .mozilla/firefox/otlcmx2t.default-esr/lock: Can't follow symlink without -L/--copy-links
2024/09/14 13:16:23 NOTICE: recovery code/snap/authy/current: Can't follow symlink without -L/--copy-links
2024/09/14 13:16:23 NOTICE: recovery code/snap/authy/12/.themes: Can't follow symlink without -L/--copy-links
2024/09/14 13:16:23 NOTICE: recovery code/snap/authy/12/.local/share/themes: Can't follow symlink without -L/--copy-links
2024/09/14 13:16:23 NOTICE: recovery code/snap/authy/12/.config/dconf/user: Can't follow symlink without -L/--copy-links
q
2024/09/14 13:17:12 NOTICE: Quitting rclone now```

from what little you posted, from that snippet, you made a serious syntax mistake.
the remote is remoteproton:, not remoteproton

hard to know for sure, again, no command was posted.

fwiw, really, huge mistake to make serious, basic errors by experimenting on the root of your homedir.
take some time, learn simple, basic linux command line syntax and create a safe test environment to make mistakes.

sorry if i seem harsh, but i am just a volunteer in a forum about rclone, not beginner linux 101.
so, i am going to drop off now. best of luck.

asdffdsa jojothehumanmonkey

Dear Sir:
Thank you for the warning. FWIW, I have all my /home backed up on an air-gaped external drive. So, at least to me, no worries.

I tried another CLI, hopefully more authoritative and post the output at:

RClone Fail

When I used Mint, RClone had a gui. Getting that up and running was pretty easy. Now that I've gone back to Debian, and the Deb Repos do not have a packaged of RClone that supports ProtonDrive, I can't figure out what to do. Hence, I'm trying to learn the command line for RClone.

Please advise: will the web gui work? That is, is it capable to copying/syncing from source to destination?

From the return in the pastebin, I see stuff I don't want to have RClone copy to the remote. .mozilla stuff, or XXX recovery codes, I don't want anyone seeing. (How did THAT get there?) Nothing like this every showed up during the RClone-GUI service.

Just in case it's not clear. My goal is to upload my /home to the Proton Drive remote and after that, to sync only new, modified, deleted folders/directories/files/objects.

Thank you again for your time.
Yours
asdfghkl;

Hi, @Mark_in_Hollywood

This is an organization that has a new working and wonderful looking graphical user interface for rclone.

I'm running it happily on Windows and I have found out from the developer that they are working on releasing a Linux version so you can't use it yet but hopefully soon.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.