How to access SMB/SAMBA with rclone

note: rclone does have a smb remote but imho, not recommended for production.

https://rclone.org/overview/#features
image

  • lacks modtime support.
  • lacks file verification using checksum/hash.
  • relies on an upstream third-party library. i could be wrong, but it has not been updated since Jul 15, 2022
  • too many bugs/issues at rclone github, including some are waiting on waiting for upstream...
    https://github.com/rclone/rclone/issues?q=is%3Aissue+is%3Aopen+smb

luckily, it is easy to access SMB/SAMBA shares using the os.


on linux:

mount -t cifs -o username="username",password="password" //server/share /mnt/share
rclone ls /mnt/share
umount /mnt/share

on windows:

  • mount with drive letter
net use x: \\server\share /user:"username" "password"
rclone ls x:\
net use /delete x:
  • mount without drive letter
net use \\server\share /user:"username" "password"
rclone ls \\server\share
net use /delete \\server\share
1 Like
How to copy file to smb/cifs dir?
Rclone can't connect to smb share
SMB signing rclone mount
How to use --smb-host?
Syncing many files (5M+)
SMB Share working in Windows but not RClone
Local path SMB-share (Synology NAS, OS Ubuntu)
Can't access mount via windows
Encrypting a single folder
Mounted SMB Drive Does Not Function as Local
"No such file or directory" from mac to FTP(NAS)
Mounting Rclone as a drive and sharing on the network
Only part of file being copied, no errors in log
Transfer stuck using Samba share on rclone mounted Onedrive
Mounted Crypt Remote filling up windows cache disk and failing on very large transfers
SMB optimization concerning transfer rate
Rclone recognizing certain filenames incorrectly
.bat file for backup
Characters in filenames are off when using Synology via SMB
Can't access mount via windows
Simplest setup for mirroring files on PC on Android tablet
Best rclone config for SMB + Plex?
DLNA Auth/Workarounds
Problem reading rclone mount over smb
Copy from smb source produces “A file cannot be opened because the share access flags are incompatible”
rclone on a pc?
Single file upload is not using entire upload speed
Sync via SMB remote painfully slow using Tailscale
Fixing encodings for SMB mounts using rclone on macOS
Which is faster via Tailscale... rsync or rclone to WebDev
Error reading destination directory with i/o errors
Small file performance vs robocopy
Best mount type for cloud storage
Rclone sync between Synology SMB and local drive running into timeouts
Rclone not handling Symlinks as Symlinks
Hetzner box and encrypted rclone remote
[Windows] Trying to share a Remote to local network via SMB
“signing required” when transfer a not very small file
Switching from Synology Cloud Sync to rclone
Need some help with a network connection
Rclone FTP to AVM FritzBox not working
What is the best way to configure host-to-host backups over wifi, primarily FreeBSD
Suggested backend for "rclone serve" to rclone
Can I mount a SAMBA drive that includes an RClone mount?
Problem with copy/check files (SMB+SD)
Connection issue to smb share "connection error: EOF"
Rclone copy stops copying after about 2 seconds
Long hang after crypt copy SMB share (Synology)
Rclone sync and rclone check crashing ubuntu server

I had a look at the backend code - it does support modtime! So I think the overview page is wrong here :slight_smile:

That is true. However if you use it via the local backend then rclone will just read the file content to make hashes, so maybe the smb backend should just do that too? Or maybe optionally?

You are right here. Unfortunately the maintainer of the upstream library has gone quiet.

The consensus from users is that if you can get it connected it works very well and it is quite quick.

However it does not support enterprisey smb shares very well. If you look at the upstream issues you can see that the majority of them are about connecting to enterprisey servers.

i did a one-line pull request to update the docs.

Update Docs to show SMB remote supports modtime

1 Like