What is the problem you are having with rclone?
rclone just right now deleted everything in my home directory.
TLDR;
- mount local folder in homedir to a mountpoint also in your home dir
- rm -r the mountpoint
- your home directory is now empty
But why would anyone mount a local folder and delete the mountpoint??
That's not the point.
rclone should never rm -r the parent directory of a mountpoint
Run the command 'rclone version' and share the full output of the command.
[niki@archlinux user]$ rclone version
rclone v1.60.0
- os/version: arch (64 bit)
- os/kernel: 6.0.6-arch1-1 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.19.2
- go/linking: dynamic
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
27/local disk
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
I was deleting the mount point while it was mounted
[niki@archlinux ~]$ rm -r rclocaltest_yes_rc_yes_cache/
The rclone config contents with secrets removed.
Unfortunately, rclone deleted the config. And all other configs and everything else.
From memory: It was simple 27 / local disk, defaults
Journal
[niki@archlinux ~]$ journalctl --user -fu rclone-bench.service [666/4047]
Nov 18 23:15:26 archlinux systemd[282]: Started rclone bench.
Nov 18 23:15:29 archlinux rclone[2263502]: INFO : Local file system at /home/niki: poll-interval is not supported by this remote
Nov 18 23:15:29 archlinux rclone[2263502]: INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
Nov 18 23:16:33 archlinux rclone[2263502]: INFO : vfs cache: cleaned: objects 1 (was 1) in use 1, to upload 0, uploading 0, total size 0 (was 0)
Nov 18 23:16:55 archlinux rclone[2263502]: INFO : 1G.BIN: vfs cache: queuing for upload in 5s
Nov 18 23:17:01 archlinux rclone[2263502]: INFO : 1G.BIN: Copied (replaced existing)
Nov 18 23:17:01 archlinux rclone[2263502]: INFO : 1G.BIN: vfs cache: upload succeeded try #1
Nov 18 23:17:07 archlinux rclone[2263502]: NOTICE: .cache/yay/iriunwebcam-bin/src/iriunwebcam-2.7.deb: Can't follow symlink without -L/--copy-links
Nov 18 23:17:07 archlinux rclone[2263502]: ERROR : .cache/yay/iriunwebcam-bin/src/: Dir.Remove failed to remove directory: remove /home/niki/.cache/yay/iriunwebcam-bin/src: directory not empty
Nov 18 23:17:07 archlinux rclone[2263502]: ERROR : IO error: remove /home/niki/.cache/yay/iriunwebcam-bin/src: directory not empty
Nov 18 23:17:08 archlinux rclone[2263502]: ERROR : .cache/yay/yt-dlp-git/pkg: failed to open directory ".cache/yay/yt-dlp-git/pkg": open /home/niki/.cache/yay/yt-dlp-git/pkg: permission denied
Nov 18 23:17:19 archlinux rclone[2263502]: NOTICE: .config/systemd/user/default.target.wants/rclone-od5tb1-youtube-backups.service: Can't follow symlink without -L/--copy-links
Nov 18 23:17:19 archlinux rclone[2263502]: ERROR : .config/systemd/user/default.target.wants/: Dir.Remove failed to remove directory: remove /home/niki/.config/systemd/user/default.target.wants: directory not empty
Nov 18 23:17:19 archlinux rclone[2263502]: ERROR : IO error: remove /home/niki/.config/systemd/user/default.target.wants: directory not empty
Nov 18 23:17:19 archlinux rclone[2263502]: INFO : 1G.BIN: vfs cache: removed cache file as file deleted
Nov 18 23:17:22 archlinux rclone[2263502]: ERROR : IO error: remove /home/niki/go/pkg/mod/github.com/!mercury!engineering/!cookie!monster@v0.0.0-20180304172713-1584578b3403/.gitignore: permission denied
Nov 18 23:17:22 archlinux rclone[2263502]: ERROR : IO error: remove /home/niki/go/pkg/mod/github.com/!mercury!engineering/!cookie!monster@v0.0.0-20180304172713-1584578b3403/.travis.yml: permission denied
Nov 18 23:17:22 archlinux rclone[2263502]: ERROR : IO error: remove /home/niki/go/pkg/mod/github.com/!mercury!engineering/!cookie!monster@v0.0.0-20180304172713-1584578b3403/LICENSE: permission denied
Nov 18 23:17:22 archlinux rclone[2263502]: ERROR : IO error: remove /home/niki/go/pkg/mod/github.com/!mercury!engineering/!cookie!monster@v0.0.0-20180304172713-1584578b3403/README.md: permission denied
Nov 18 23:17:22 archlinux rclone[2263502]: ERROR : IO error: remove /home/niki/go/pkg/mod/github.com/!mercury!engineering/!cookie!monster@v0.0.0-20180304172713-1584578b3403/cookiemonster.go: permission denied
Nov 18 23:17:22 archlinux rclone[2263502]: ERROR : IO error: remove /home/niki/go/pkg/mod/github.com/!mercury!engineering/!cookie!monster@v0.0.0-20180304172713-1584578b3403/cookiemonster_test.go: permission denied
Nov 18 23:17:22 archlinux rclone[2263502]: ERROR : IO error: remove /home/niki/go/pkg/mod/github.com/!mercury!engineering/!cookie!monster@v0.0.0-20180304172713-1584578b3403/testcookies.txt: permission denied
Nov 18 23:17:22 archlinux rclone[2263502]: ERROR : IO error: remove /home/niki/go/pkg/mod/github.com/!puerkito!bio/goquery@v1.8.0/.gitattributes: permission denied
The ERROR messages in the rclone log come from rclone trying to delete folders in my home directory but lacking permissions