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+)
Local path SMB-share (Synology NAS, OS Ubuntu)
SMB Share working in Windows but not RClone
Can't access mount via windows
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
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
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?
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
Best rclone config for SMB + Plex?
Small file performance vs robocopy
Best mount type for cloud storage
Rclone sync between Synology SMB and local drive running into timeouts
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
Check/Enforce Encryption with SMB
FTP List timeout
Error reading destination directory with i/o errors
Single file upload is not using entire upload speed
Long hang after crypt copy SMB share (Synology)
Rclone copy stops copying after about 2 seconds
Connection issue to smb share "connection error: EOF"
Problem with copy/check files (SMB+SD)
Can I mount a SAMBA drive that includes an RClone mount?
Rclone not handling Symlinks as Symlinks
DLNA Auth/Workarounds
SMB optimization concerning transfer rate
Mounted Crypt Remote filling up windows cache disk and failing on very large transfers
Mounted SMB Drive Does Not Function as Local
Encrypting a single folder
Rclone sync and rclone check crashing ubuntu server
"No such file or directory" from mac to FTP(NAS)

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