<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Smbprotocol on Servicios Rogeliowar</title><link>https://blog.serviciosrogeliowar.com/en/tags/smbprotocol/</link><description>Recent content in Smbprotocol on Servicios Rogeliowar</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>© 2026 Rogelio Guerra Riverón</copyright><lastBuildDate>Mon, 04 May 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://blog.serviciosrogeliowar.com/en/tags/smbprotocol/index.xml" rel="self" type="application/rss+xml"/><item><title>Incremental synchronization from SMB with smbprotocol on Linux: NTLM authentication and log control</title><link>https://blog.serviciosrogeliowar.com/en/posts/sincronizacion-incremental-desde-smb-con-smbprotocol-en-linux-autenticacion-ntlm-y-control-de-logs/</link><pubDate>Mon, 04 May 2026 00:00:00 +0000</pubDate><guid>https://blog.serviciosrogeliowar.com/en/posts/sincronizacion-incremental-desde-smb-con-smbprotocol-en-linux-autenticacion-ntlm-y-control-de-logs/</guid><description>&lt;h2 class="relative group"&gt;The Problem
 &lt;div id="the-problem" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#the-problem" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;Recently I needed to sync an SMB share from a NAS with my Linux server. The obvious solution would be &lt;code&gt;smbclient&lt;/code&gt; or &lt;code&gt;mount -t cifs&lt;/code&gt;, but I wanted:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Incremental&lt;/strong&gt; synchronization (only new or modified files)&lt;/li&gt;
&lt;li&gt;Detect files &lt;strong&gt;deleted&lt;/strong&gt; from the share&lt;/li&gt;
&lt;li&gt;Control &lt;strong&gt;NTLM&lt;/strong&gt; authentication directly from code&lt;/li&gt;
&lt;li&gt;Silence the obscene amount of logs that &lt;code&gt;smbprotocol&lt;/code&gt; spits out&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The Python &lt;code&gt;smbprotocol&lt;/code&gt; library solved all of this, but there&amp;rsquo;s no documentation on how to do it properly. Here&amp;rsquo;s my solution.&lt;/p&gt;</description></item></channel></rss>