<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Elihu Cruz</title>
    <description>The latest articles on DEV Community by Elihu Cruz (@ea2305).</description>
    <link>https://dev.to/ea2305</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F228071%2F16f9bf06-8ff5-48ea-8d15-faed5b5252f3.jpeg</url>
      <title>DEV Community: Elihu Cruz</title>
      <link>https://dev.to/ea2305</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ea2305"/>
    <language>en</language>
    <item>
      <title>Time-machine backup with your home server.</title>
      <dc:creator>Elihu Cruz</dc:creator>
      <pubDate>Wed, 10 Aug 2022 06:08:30 +0000</pubDate>
      <link>https://dev.to/ea2305/time-machine-backup-with-your-home-server-1lj6</link>
      <guid>https://dev.to/ea2305/time-machine-backup-with-your-home-server-1lj6</guid>
      <description>&lt;h2&gt;
  
  
  About this project
&lt;/h2&gt;

&lt;p&gt;Hey people, I started this project a couple of weeks ago as a side project. &lt;br&gt;
I built a custom PC with Linux to use as a home lab server. The main idea was to buy a NAS to handle this job, but, sadly the prices right now are quite high here in my country, so, I decided to go one step further and build this home-lab server with some spare parts that I got from the internet.&lt;/p&gt;

&lt;p&gt;Computer specs, nothing too fancy:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;2 x HDD 1TB&lt;/li&gt;
&lt;li&gt;AMD Ryzen 3&lt;/li&gt;
&lt;li&gt;8 GB of RAM DDR4&lt;/li&gt;
&lt;li&gt;1 M2 disk with 250GB of memory for the OS (ubuntu server)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Let's get started
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Pre-requirements
&lt;/h3&gt;

&lt;p&gt;First, We have to create a simple ubuntu server bootable USB. The ISO file can be downloaded free on the Ubuntu site. just go to the &lt;a href="https://ubuntu.com/download/server" rel="noopener noreferrer"&gt;Download page&lt;/a&gt; and select &lt;code&gt;&amp;gt; Manual server installation&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;After that, we should flash and USB with enough memory to be able to store the ISO file.&lt;/p&gt;

&lt;p&gt;There are some good guides out there, I suggest taking a look at this guide if you are using a Linux OS: &lt;a href="https://linuxconfig.org/create-bootable-ubuntu-22-04-usb-startup-disk" rel="noopener noreferrer"&gt;This guide&lt;/a&gt;&lt;br&gt;
And if you are in Windows, &lt;a href="https://rufus.ie/en/" rel="noopener noreferrer"&gt;RUFUS&lt;/a&gt; is a great tool for this job.&lt;/p&gt;

&lt;p&gt;Then, install the OS into your server to start with our configuration. Here is a &lt;a href="https://ubuntu.com/tutorials/install-ubuntu-server#1-overview" rel="noopener noreferrer"&gt;quick official tutorial&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Don't forget to install OpenSSH during the installation process, we'll need that later.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Ubuntu server configuration.
&lt;/h2&gt;

&lt;p&gt;First, we need to set up our environment to handle auth users and disable possible security concerns in the future.&lt;/p&gt;

&lt;p&gt;Let's start with the server user's configuration&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Login with the user's data provided in the ubuntu configuration (home/pass)&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Create a new user (don't forget to replace the &lt;code&gt;username&lt;/code&gt;)&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;

&lt;span class="nb"&gt;sudo &lt;/span&gt;adduser newusername


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;The user's creation process will request you to add a new password.&lt;/p&gt;

&lt;p&gt;Then add this new user to the admin group.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;

&lt;span class="nb"&gt;sudo &lt;/span&gt;usermod &lt;span class="nt"&gt;-aG&lt;/span&gt; &lt;span class="nb"&gt;sudo &lt;/span&gt;newusername


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h3&gt;
  
  
  SSH configuration
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;If we installed the OpenSSH tool, we should be able to connect our new server remotely.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The SSH secure configuration is required to add an extra layer of security to our server and avoid unknown login requests.&lt;/p&gt;

&lt;p&gt;To do that we can set up the ssh key of our remote terminal/computer.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;More details here: &lt;a href="https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys-on-ubuntu-20-04" rel="noopener noreferrer"&gt;https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys-on-ubuntu-20-04&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Copy our local RSA key to the server&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;

&lt;span class="nb"&gt;cat&lt;/span&gt; ~/.ssh/id_rsa.pub | ssh username@remote_host &lt;span class="s2"&gt;"mkdir -p ~/.ssh &amp;amp;&amp;amp; touch ~/.ssh/authorized_keys &amp;amp;&amp;amp; chmod -R go= ~/.ssh &amp;amp;&amp;amp; cat &amp;gt;&amp;gt; ~/.ssh/authorized_keys"&lt;/span&gt;


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;And then remove password access, to avoid others to access the server without setting up the ssh key.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Before that, verify if you can access the server :s&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
 nano /etc/ssh/sshd_config

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Update ssh access to disable the password&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight conf"&gt;&lt;code&gt;

. . .
&lt;span class="n"&gt;PasswordAuthentication&lt;/span&gt; &lt;span class="n"&gt;no&lt;/span&gt;
. . .


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;And finally, restart the ssh service&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;

&lt;span class="nb"&gt;sudo &lt;/span&gt;systemctl restart ssh


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h2&gt;
  
  
  Disk configuration
&lt;/h2&gt;

&lt;p&gt;First, we need to inspect disks and look for the names and the partitions that are inside of them with&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
 fdisk -l

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;with this information, we can select one disk to work with i.e "Disk /dev/sda:" &lt;code&gt;sudo fdisk /dev/sda&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;If the disk has older partitions (this is my case because both disks were used before), we should remove each partition. (this process requires repeating the same operation until the partitions are gone.)&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Inside, the CLI will request you to ask for the next operation. You can press "m" to get more info,&lt;/li&gt;
&lt;li&gt;but we want to delete all the partitions inside the disk&lt;/li&gt;
&lt;li&gt;Select "d"&lt;/li&gt;
&lt;li&gt;keep with the default option until you delete all the partitions&lt;/li&gt;
&lt;li&gt;After that, verify the disk with "p"&lt;/li&gt;
&lt;li&gt;&lt;p&gt;and save the changes with "w"&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Repeat the same process with the extra disks (This is kind of tedious but I don't know another way to do it right now).&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;After all of that, we are ready to create new RAID partitions.&lt;/p&gt;

&lt;h2&gt;
  
  
  RAID partitions.
&lt;/h2&gt;

&lt;p&gt;Now that we have clean disks, we can create the partitions we'll use for the RAID configuration.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Select the disk&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;

&lt;span class="nb"&gt;sudo &lt;/span&gt;fdisk /dev/sda


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;Select "n" to create a new partition.&lt;/li&gt;
&lt;li&gt;you can choose the default configuration by pressing enter (unless you want to have a custom configuration)&lt;/li&gt;
&lt;li&gt;then select the limit of registries, I will use the default as well.&lt;/li&gt;
&lt;li&gt;then, we need to update the partition type, to do so, let's check the valid partitions&lt;/li&gt;
&lt;li&gt;and then format with the option "t" writing the number of partitions we want, for this case it's "29" = "Linux RAID"&lt;/li&gt;
&lt;li&gt;&lt;p&gt;and finally, save all the changes with "w"&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Important: Repeat the process with the other disk&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Now that we have the partitions ready we can generate the RAID with the following command:&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;

&lt;span class="nb"&gt;sudo &lt;/span&gt;mdadm &lt;span class="nt"&gt;--create&lt;/span&gt; /dev/md0 &lt;span class="nt"&gt;--level&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;1 &lt;span class="nt"&gt;--raid-devices&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;2 /dev/sda1 /dev/sdb1


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyptna62u5hp7qi1wg8p2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyptna62u5hp7qi1wg8p2.png" alt="raid configuration"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Remember to use the names of the devices you created, in my case I made 2 (sda1, sdb1).&lt;/p&gt;

&lt;p&gt;we can check the status of the operation with: &lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;

&lt;span class="nb"&gt;sudo cat&lt;/span&gt; /proc/mdstat


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F22zcwzlenm2apv1fcfwa.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F22zcwzlenm2apv1fcfwa.png" alt="mdstat preview"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;when the operation is done, we can assign a format, Ext4 is ok considering Samba doesn't care about the format.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;

&lt;span class="nb"&gt;sudo &lt;/span&gt;mkfs.ext4 /dev/md0


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmv4t46v8zr0pd8lb0b7k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmv4t46v8zr0pd8lb0b7k.png" alt="format with mkfs"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Finally, we can mount the RAID partition.&lt;/p&gt;

&lt;p&gt;Let's create a new directory to bind it with the disk.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;

&lt;span class="nb"&gt;sudo mkdir&lt;/span&gt; /mnt/macos_back


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;To allow the OS to link the disk with the directory we must update the &lt;code&gt;fstab&lt;/code&gt; configuration to allow the mounting point to be persistent.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;

&lt;span class="nb"&gt;sudo &lt;/span&gt;nano /etc/fstab


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;blockquote&gt;
&lt;p&gt;Put the next line at the bottom&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight conf"&gt;&lt;code&gt;

/&lt;span class="n"&gt;dev&lt;/span&gt;/&lt;span class="n"&gt;md0&lt;/span&gt;    /&lt;span class="n"&gt;mnt&lt;/span&gt;/&lt;span class="n"&gt;macos_back&lt;/span&gt; &lt;span class="n"&gt;ext4&lt;/span&gt;    &lt;span class="n"&gt;defaults&lt;/span&gt;    &lt;span class="m"&gt;0&lt;/span&gt;   &lt;span class="m"&gt;0&lt;/span&gt;


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;finally, restart the server to mount the new partition with the RAID&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;

&lt;span class="nb"&gt;sudo &lt;/span&gt;reboot


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h2&gt;
  
  
  SAMBA time
&lt;/h2&gt;

&lt;p&gt;First we'll install samba with:&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;

&lt;span class="nb"&gt;sudo &lt;/span&gt;apt &lt;span class="nb"&gt;install &lt;/span&gt;samba


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;then we need to provide permissions to all the users.&lt;/p&gt;

&lt;p&gt;Add users that will require access to the network share &lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;

&lt;span class="nb"&gt;sudo &lt;/span&gt;adduser myuser
&lt;span class="nb"&gt;sudo &lt;/span&gt;smbpasswd &lt;span class="nt"&gt;-a&lt;/span&gt; myuser
&lt;span class="nb"&gt;sudo &lt;/span&gt;usermod &lt;span class="nt"&gt;-g&lt;/span&gt; &lt;span class="nb"&gt;users &lt;/span&gt;myuser


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;blockquote&gt;
&lt;p&gt;Just for safety lets create a default config backup&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;

&lt;span class="nb"&gt;sudo mv&lt;/span&gt; /etc/samba/smb.conf /etc/samba/smb.conf.bak


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Now, let's write the samba config that we need to use timemachine.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;

&lt;span class="nb"&gt;sudo &lt;/span&gt;nano /etc/samba/smb.conf


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;and put the following configuration&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Remember to update the configuration file with your variables.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

[global]
workgroup = myhostname
min protocol = SMB2

# security
security = user
passdb backend = tdbsam
map to guest = Bad User

# mac Support
spotlight = yes
vfs objects = acl_xattr catia fruit streams_xattr
fruit:aapl = yes
fruit:time machine = yes

#NetShares 

[volumes]
comment = Time Machine
path = /mnt/macos_back/volumes
valid users = @users
browsable = yes
writable = yes
read only = no
create mask = 0644
directory mask = 0755


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;And finally, save the changes. Then we have to create a new folder to contain the data we are going to share&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;

&lt;span class="nb"&gt;sudo mkdir&lt;/span&gt; /mnt/macos_back/volumes


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;To be accessible to samba we need to change the permissions and add the users in the directory.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;

&lt;span class="nb"&gt;sudo chmod &lt;/span&gt;777 /mnt/macos_back/volumes
&lt;span class="nb"&gt;sudo chown &lt;/span&gt;root:users /mnt/macos_back/volumes


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;With all that done, let's restart the service and create a new rule in the firewall to allow SAMBA to be accessible.&lt;/p&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

&lt;p&gt;sudo service smbd restart&lt;br&gt;
sudo ufw allow samba&lt;/p&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h2&gt;
&lt;br&gt;
  &lt;br&gt;
  &lt;br&gt;
  Connect TimeMachine with your SAMBA server.&lt;br&gt;
&lt;/h2&gt;

&lt;p&gt;The only requirement to use Time Machine with our server is to provide a connection with the server. To do that we can start a connection with Finder, Open the application, and select &lt;code&gt;Go &amp;gt; Connect to server...&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fycbzo8alk73zbrwcot75.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fycbzo8alk73zbrwcot75.png" alt="open server connection ui"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That will display the connection window. Let's add a new connection with the UI. We have to write the connection URL, something similar to this: &lt;code&gt;smb://&amp;lt;your_server_ip_address&amp;gt;/&amp;lt;your_samba_volume&amp;gt;&lt;/code&gt; &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9x0opgnke2cv8xam2dvx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9x0opgnke2cv8xam2dvx.png" alt="add samba server"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;If you don't know the ip of your server, you could verify it with &lt;code&gt;ifconfig&lt;/code&gt;.&lt;br&gt;
For this example we used &lt;code&gt;volumes&lt;/code&gt; as a volume, so, the connection URL will look like this: smb://192.168.100.27/volumes&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;If the connection was successful, now we should be able to see the new server in our Time Machine settings. Open select disk and find our new SAMBA Server to start with the backup process.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe3b6uuhzexkj2eewqrj2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe3b6uuhzexkj2eewqrj2.png" alt="time machine ui with samba"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  First impressions
&lt;/h3&gt;

&lt;p&gt;After the connection the time-machine will take some time to perform the first backup (4hrs in my case), but, I was able to be testing the consistency of this implementation and so far the time-machine backups look good, the subsequent updates were way more faster and the file is stored safely in the disk in our server.&lt;/p&gt;

&lt;p&gt;One possible caveat for this implementation could be the availability of the network, so make sure the local network is stable.&lt;/p&gt;

&lt;p&gt;I hope this post will be useful for someone looking to implement something similar.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Thanks for reading!&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>linux</category>
      <category>timemachine</category>
      <category>mac</category>
      <category>nas</category>
    </item>
  </channel>
</rss>
