---> I don't know what is the proper way to mount the two remotes on this already mounted share:
-> remote "onedrive" on /mnt/rclone-share/OneDrive
-> remote "googledrive" on /mnt/rclone-share/GoogleDrive
Run the command 'rclone version' and share the full output of the command.
rclone v1.66.0
os/version: debian 12.5 (64 bit)
os/kernel: 6.1.0-18-amd64 (x86_64)
os/type: linux
os/arch: amd64
go/version: go1.22.1
go/linking: static
go/tags: none
Are you on the latest version of rclone?
--> Yes
Which cloud storage system are you using?
Microsoft OneDrive
Google Drive
The command you were trying to run
Maybe something like this?
But I am not sure at all if it works and it will not be permanent. I want to make this working at startup.
And maybe with a delay to be sure the SMB share is mounted before mounting the remote on it.
rclone mount onedrive: /mnt/rclone-share/OneDrive --config /home/non-root-user/.config/rclone/rclone.conf --vfs-cache-mode writes --allow-other --daemon
rclone mount googledrive: /mnt/rclone-share/GoogleDrive --config /home/non-root-user/.config/rclone/rclone.conf --vfs-cache-mode writes --allow-other --daemon
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
2024/03/26 20:50:41 DEBUG : rclone: Version "v1.66.0" starting with parameters ["rclone" "mount" "onedrive:" "/mnt/rclone-share/OneDrive" "--config" "/home/non-root-user/.config/rclone/rclone.conf" "--vfs-cache-mode" "writes" "-vv"]
2024/03/26 20:50:41 DEBUG : Creating backend with remote "onedrive:"
2024/03/26 20:50:41 DEBUG : Using config file from "/home/non-root-user/.config/rclone/rclone.conf"
2024/03/26 20:50:41 DEBUG : onedrive: Loaded invalid token from config file - ignoring
2024/03/26 20:50:43 DEBUG : Saving config "token" in section "onedrive" of the config file
2024/03/26 20:50:43 DEBUG : onedrive: Saved new token in config file
2024/03/26 20:50:44 DEBUG : OneDrive root '': Next delta token is: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
2024/03/26 20:50:44 DEBUG : vfs cache: root is "/home/non-root-user/.cache/rclone"
2024/03/26 20:50:44 DEBUG : vfs cache: data root is "/home/non-root-user/.cache/rclone/vfs/onedrive"
2024/03/26 20:50:44 DEBUG : vfs cache: metadata root is "/home/non-root-user/.cache/rclone/vfsMeta/onedrive"
2024/03/26 20:50:44 DEBUG : Creating backend with remote "/home/non-root-user/.cache/rclone/vfs/onedrive/"
2024/03/26 20:50:44 DEBUG : fs cache: renaming cache item "/home/non-root-user/.cache/rclone/vfs/onedrive/" to be canonical "/home/non-root-user/.cache/rclone/vfs/onedrive"
2024/03/26 20:50:44 DEBUG : Creating backend with remote "/home/non-root-user/.cache/rclone/vfsMeta/onedrive/"
2024/03/26 20:50:44 DEBUG : fs cache: renaming cache item "/home/non-root-user/.cache/rclone/vfsMeta/onedrive/" to be canonical "/home/non-root-user/.cache/rclone/vfsMeta/onedrive"
2024/03/26 20:50:44 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2024/03/26 20:50:44 DEBUG : OneDrive root '': Mounting on "/mnt/rclone-share/OneDrive"
2024/03/26 20:50:44 DEBUG : : Root:
2024/03/26 20:50:44 DEBUG : : >Root: node=/, err=<nil>
2024/03/26 20:51:44 DEBUG : OneDrive root '': Checking for changes on remote
2024/03/26 20:51:44 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2024/03/26 20:52:44 DEBUG : OneDrive root '': Checking for changes on remote
2024/03/26 20:52:44 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
[...]
But I don't understand, the local mounted folder, first with the test directory and second with the mounted SMB share, are empty, so Rclone doesn't download any of the files on the remote corresponding cloud provider.
Is it only a one-way sync? From the local folder to the cloud provider?
Or am I missing some flag to implement?
Is there a way to make it a two-ways sync, from the cloud provider to the local mounted folder and reverse?
Once I understand and implement correctly this, do you know the proper way on Linux to run this command in the background, or as a service, and to automatically run it at startup?
Maybe with a little delay to make sure it is started after the SMB share is mounted.
Thanks again for your help, I really appreciate it.
But if I understand correctly, when I was mounting Rclone in the local test folder:
"/home/non-root-user/onedrive_test"
As it was only mounted by Rclone, I think I do not need the "--allow-other" flag, but it was also empty.
Is the two-ways sync the default mode for Rclone?
What I am calling two-ways sync is to synchronize the local storage with the content on the cloud storage, and reverse.
Seeing my local storage empty, I was wondering if by default, Rclone was maybe only synchronizing the cloud with the content on local storage.
But it is great if it is not the case!
Ok, so the command rclone lsd onedrive: -vv does list my root directories of this OneDrive account.
I tried to run my previous command in the test folder with --daemon and it is populating the folder with my OneDrvie directories and files. rclone mount onedrive: /home/non-root-user/onedrive_test --config /home/non-root-user/.config/rclone/rclone.conf --vfs-cache-mode writes --daemon -vv
What I don't understand is, as soon as I unmount this folder, it becomes empty.
I suppose it was working before, but as I was not running the command with the --daemon flag, I could not see the content populating, because I had to interrupt the process with "Ctrl+C" to get access again to the CLI.
With the --daemon flag, I use the command below to unmount the mounting point: fusermount3 -u /home/non-root-user/onedrive_test
Not sure if it is the right way to do this.
I tried with the TrueNAS SMB share /mnt/rclone-share/OneDrive with the exact same result.
It seems to be working without the --allow-other flag.
How can I make the files synchronized on the local folder persist?
And of course with my previous questions. ^^
I know and you're right, one step at a time!
I am new to Rclone and did not have much time at the moment to investigate, so your help is great, thanks again!
Ok, I did look at it before, but at this time, I understood it was designed to sync two remotes between themselves. So I thought not a remote with a local folder.
But I will read it in detail.
For example, if I have a power outage or an Internet provider connection interruption at home, when some files are synchronizing.
Will the synchronization resumes correctly after? No risk of files corruption?
i have no experience with bisync, very complex beta contraption, with a unstable history.
need to be very careful about that.
tho recently, a lot of excellent work is being done.
unlike bisync, other simple commands, such as sync/copy/move do not maintain state or lock files.
very simple, each time rclone runs, it compares source and dest, decides what needs to be copied/moved/deleted...