[CLOSED] RCLone outputting NON directory?

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)

rclone conig uses:

Scotty@protonmail.com

What is the problem you are having with rclone?

Please see terminal output at pastebin.com
How can I prevent rclone copy or sync cloud-storing some files I don't want put in the cloud? What is the syntax for copying (and later synching) directories and files (or objects) within directories? All the CLI syntax I find on the 'net fails for me.

I do have air gapped /home backed up and it's safe.

Run the command 'rclone version' and share the full output of the command.

v. 1.68

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

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone copy /home/user/ remoteproton:/

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

Paste config here
```rclone config redacted
[remoteproton]
type = protondrive
username = thespian1967@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/   -->```

rclone copy /home/user/ remoteproton:/ -vv
2024/09/19 11:15:46 DEBUG : rclone: Version "v1.68.0" starting with parameters ["rclone" "copy" "/home/user/" "remoteproton:/" "-vv"]
2024/09/19 11:15:46 DEBUG : Creating backend with remote "/home/user/"
2024/09/19 11:15:46 DEBUG : Using config file from "/home/mark/.config/rclone/rclone.conf"
2024/09/19 11:15:46 DEBUG : fs cache: renaming cache item "/home/user/" to be canonical "/home/user"
2024/09/19 11:15:46 DEBUG : Creating backend with remote "remoteproton:/"
2024/09/19 11:15:46 DEBUG : proton drive root link ID '': Has cached credentials
2024/09/19 11:15:48 DEBUG : proton drive root link ID '': Used cached credential to initialize the ProtonDrive API
2024/09/19 11:15:48 DEBUG : fs cache: renaming cache item "remoteproton:/" to be canonical "remoteproton:"
2024/09/19 11:16:00 ERROR : Local file system at /home/user: error reading source root directory: directory not found
2024/09/19 11:16:00 DEBUG : proton drive root link ID '': Waiting for checks to finish
2024/09/19 11:16:00 DEBUG : proton drive root link ID '': Waiting for transfers to finish
2024/09/19 11:16:00 ERROR : Attempt 1/3 failed with 1 errors and: directory not found
2024/09/19 11:16:12 ERROR : Local file system at /home/user: error reading source root directory: directory not found
2024/09/19 11:16:12 DEBUG : proton drive root link ID '': Waiting for checks to finish
2024/09/19 11:16:12 DEBUG : proton drive root link ID '': Waiting for transfers to finish
2024/09/19 11:16:12 ERROR : Attempt 2/3 failed with 1 errors and: directory not found
2024/09/19 11:16:24 ERROR : Local file system at /home/user: error reading source root directory: directory not found
2024/09/19 11:16:24 DEBUG : proton drive root link ID '': Waiting for checks to finish
2024/09/19 11:16:24 DEBUG : proton drive root link ID '': Waiting for transfers to finish
2024/09/19 11:16:24 ERROR : Attempt 3/3 failed with 1 errors and: directory not found
2024/09/19 11:16:24 INFO  : 
Transferred:   	          0 B / 0 B, -, 0 B/s, ETA -
Errors:                 1 (retrying may help)
Elapsed time:        37.6s
2024/09/19 11:16:24 DEBUG : 5 go routines active
2024/09/19 11:16:24 NOTICE: Failed to copy: directory not found

Thank you.
More to my point, when I used Linux Mint, rclone had a gui. It would upload seamlessly. I switched back to Debian. The Deb Repos rclone doesn't support ProtonDrive, which is my cloud. In the pastebin, linked above, there are some secrets being shown. How can I obfuscate that using rclone?

I can't tell if you are trolling us or not.

There are a number of other posts where folks have answered and said don't use stock repos as they are not maintained by rclone and to install via Install (rclone.org)

To prevent files from being uploaded, you filter them out as @kapitainsky already posted.

What secrets being shown? I'm not following as there are not any in your pastebin.

I don't troll. I'm in my mid-70s. I'm struggling with this as with nothing else I've ever done with software.
Thank you for your response. By secrets I don't mean user names and passwords. It would be one thing if the terminal showed all objects being copied over to the cloud. Another when it shows objects which are part of my cybersecurity. That's to this ignorant person, quite startling.
Again, thank you. i'm to inexperienced with rclone as of yet to know how to ask an intelligent question. I apologize for asking for your help and taking your time. I'm closing this to prevent more of that.

If you had a concern about a file name, you'd have to obsfucate it or just not post. Many people remove file names if they have a concern or simply don't post it as that's a choice you'd have to make.

I think you are looking for more basic computer questions than rclone as it's a tough tool to just 'pick' up if you don't have the basics under your belt.

Questions are great as it's how we all learn. I'm not sure how to answer differently though if the same questions keep coming up as the answers are not making sense for you then.

Most of us all just volunteer time so you aren't 'taking' anything as we want to help folks. The goal isn't to alienate you.

As briefly as possible. I have cloud storage with Proton Drive. I want to copy my Debian/Linux /home directory to the cloud. After than "copy" I want to sync new/modified/deleted objects between my computer's /home and the cloud's /home.

I raked the Internet for examples of syntax. I've not found any (I'll continue to research) that work. Either I seem to send only files or only directories, but never both.

Thank you for your response.

The rclone docs do a good job at explaining copy and sync.

rclone copy

rclone sync

Copy is doesn't delete any extra on the destination. Sync makes the source and destination identical deleting all files on the destination not found on the source.

Depending on what your goal is, you can use either one based on what you want to happen.

I'm not sure as copy and sync both do files and directories.

rclone copy /home/source remote:backupdir

or

rclone sync /home/source remote:backupdir

I'd use --dry-run to see if it's doing the right thing and what you want before you execute it.

Remember, sync is destructive so be sure you test with --dry-run first and validate.

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