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
.bat file for backup
Sync via SMB remote painfully slow using Tailscale
Which is faster via Tailscale... rsync or rclone to WebDev
SMB optimization concerning transfer rate
Connection issue to smb share "connection error: EOF"
Encrypting a single folder
Mounted SMB Drive Does Not Function as Local
Rclone copy stops copying after about 2 seconds
Single file upload is not using entire upload speed
Can't access mount via windows
Rclone not handling Symlinks as Symlinks
Transfer stuck using Samba share on rclone mounted Onedrive
Only part of file being copied, no errors in log
Problem with copy/check files (SMB+SD)
DLNA Auth/Workarounds
rclone on a pc?
Problem reading rclone mount over smb
Rclone sync and rclone check crashing ubuntu server
Mounting Rclone as a drive and sharing on the network
Mounted Crypt Remote filling up windows cache disk and failing on very large transfers
Best rclone config for SMB + Plex?
Rclone recognizing certain filenames incorrectly
"No such file or directory" from mac to FTP(NAS)
Characters in filenames are off when using Synology via SMB
Suggested backend for "rclone serve" to rclone
What is the best way to configure host-to-host backups over wifi, primarily FreeBSD
Rclone FTP to AVM FritzBox not working
Need some help with a network connection
Switching from Synology Cloud Sync to rclone
“signing required” when transfer a not very small file
[Windows] Trying to share a Remote to local network via SMB
Hetzner box and encrypted rclone remote
Rclone sync between Synology SMB and local drive running into timeouts
Best mount type for cloud storage
Small file performance vs robocopy
Error reading destination directory with i/o errors
Fixing encodings for SMB mounts using rclone on macOS
Simplest setup for mirroring files on PC on Android tablet

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