Imagine a Time Machine server taking over the job you keep putting off. Your MacBook holds years of family photos and work, but its reminder brings bad news. You have gone about 23 days without a fresh copy. The external disk sits in a drawer, so you promise to fetch it later. Imagine that same evening slipping away while you cook, answer messages, and clear the sofa. You want those files safe, but backing up still depends on one more thing to remember. Your home computer already runs Ubuntu, a type of Linux, so you start to wonder whether it could help.
This guide walks through that idea in plain words, from the first command to choosing the shared drive. You will give your laptop a place to send its copies, then set how much space it sees. Each line has a clear job, so you can understand what you change. You do not need to guess what a long list of options means. We will also check the result from the laptop, because a saved setting alone does not prove success. Imagine closing the drawer and keeping your evening free, with one clear task left: get both computers talking.
Why choose a Time Machine server?

A shared drive works like a post box at home that collects letters while you stay busy. You still need a place for the letters, but you no longer carry it around. Here, the home network gives your laptop a path to that place. That changes the task from fetching a drive to choosing a shared target.
Apple supports third-party network storage that offers its copy tool over SMB. Network storage means a place for files that you reach through your home network. SMB is the set of rules that lets computers share those files. The older rules, called AFP, no longer work for this purpose in macOS 27 or later. So this guide uses SMB from the start. That choice also keeps things simple, because one set of rules covers both the sharing and the copies.
The box can also announce its shares through Avahi, a tool that helps nearby computers find them. Its announcement option starts switched on, so your Mac can spot the share without a typed address.
If you still need to prepare the computer, start with our guide to setting up your Ubuntu box. Then return here, because the next step gives those shared files a home.
Install the tools and make a backup shelf

Think of this step as building a shelf in the cupboard and putting a label on it. First, you need the shelf itself; then you need to say who owns it. The Ubuntu guide explains how Samba lets Linux share files with other computers. Run these commands, replacing username with your own login name.
sudo apt install samba
sudo mkdir -p /srv/timemachine
sudo chown username: /srv/timemachineThe first line adds the sharing software, while the next builds the shelf. Its path tells the computer where to keep the copies. The last line gives your chosen account ownership of that backup directory. A directory is simply another word for a folder, so there is no extra place to create.
Your Time Machine backup needs a Samba server with an account the laptop can use. Give that account a sharing password with smbpasswd, the tool that manages these passwords.
sudo smbpasswd -a usernameThis password is separate from your login password, so keep track of which one you choose here. You will use it when the laptop asks to connect. For everyday file sharing beyond these copies, see our guide to sharing everyday folders between your computers. Write the user name and password somewhere safe, because the laptop will ask for both again. Next, give the new shelf the options it needs.
How does a Time Machine server speak Mac?

These options act like a translator at the door who speaks the laptop’s language. They help the shared place offer the features the laptop expects. The fruit guide explains those features and the space option below. Here, fruit means the Apple support module, an added part of the sharing software.
Edit /etc/samba/smb.conf and add this share at the end. That config file holds the rules for sharing; config is just short for configuration.
[timemachine]
path = /srv/timemachine
read only = no
vfs objects = catia fruit streams_xattr
fruit:time machine = yes
fruit:time machine max size = 500GThe name in square brackets gives the share its label, so you can recognise it later. The path points to the shelf you just made. Next, read only = no allows writes, which means the laptop can save its copies there.
The vfs objects line loads Samba’s Mac helpers as a group. You can think of those helpers as the parts of the translator doing the work. The next setting tells the laptop that this share supports its copy tool. That support starts off unless you turn it on here.
Finally, the last line limits the space the share reports. Keep reading before you settle on that example size. That limit matters more than it looks, because the copies keep growing as the weeks go by.
Put a fence around the space

The size line works like a fence around a garden plot, keeping growth within a chosen space. Your Time Machine server should report a limit that fits the drive you have. Here, 500G is an example, so do not treat it as a rule for every home.
The machine max size option limits the size that the share reports to the laptop. That gives the copy tool a boundary for its growth. It does not mean you have added more room to the drive. So choose a value that makes sense for the space you want to give it.
Keep the distinction clear as you read the line: it describes reported space. The fence image helps explain the goal, but the actual control is that reported limit. Review the path and the account name as well, because they should match the choices you made earlier.
Save your changes, then restart the sharing services with this command from the same guide:
sudo systemctl restart smbd.service nmbd.serviceThis step brings the saved rules into use, so the next check belongs on the laptop. Imagine leaving the cupboard alone for a moment and opening your MacBook instead. Now you can find out whether the shared place appears where you need it.
Connect your Mac to the Time Machine server

Connecting is like introducing two neighbours once, so they can chat on their own afterward. Your home computer now needs that first introduction from the laptop. Open System Settings > General > Time Machine > Add Backup Disk, as shown in the setup guide. Pick the share, then enter the sharing user name and password you chose earlier.
Imagine seeing the new name appear in that list for the first time. The plan now has a visible result, because the laptop can find the place you made. Check that the name matches your share before you choose it. Then use the sharing password rather than reaching for your usual login password.
If the share does not appear, open Finder, the app you use to browse files. Choose Go > Connect to Server, then enter this address:
smb://192.168.1.50/timemachineReplace the example address with your home computer’s address, then log in with the same account. Return to the drive chooser and select the share there. Finding it in a browsing window helps you connect, but choosing it for copies completes this part. If the login fails, check the account name first, because a small typo is easy to miss. Next, give the first run the time it needs.
What happens after the first run?

The saved history works like a photo album with pages from different points in time. It keeps hourly copies for the past day, daily copies for the past month, and weekly copies after that. When the space fills up, it removes the oldest pages. So the history changes as new copies take their place.
The first run takes a long time, because it starts that history. Keep the laptop on the same home network for this first pass. You can also leave it plugged in overnight while it works. A slow first evening alone does not tell you that the share failed.
Instead, return to the same settings screen and check the progress of the run. Choosing the share was the first check; seeing a completed backup is the next one. Until it finishes, keep that difference in mind when you judge the result.
You can restore a single file or the whole computer from the saved copies. That is why the history matters beyond the first successful connection. Imagine your photo collection with earlier versions ready to revisit, rather than just a place that appears in a list. Before you leave it running, a few common questions deserve clear answers.
Frequently asked questions
The supported route uses SMB, the sharing protocol described earlier. AFP cannot serve as a backup destination in version 27 or later, so keep the newer route in this setup. Think of the post box again: you need a way to reach it that your laptop still supports.
Choose an amount that fits your drive and the room you want to give these copies. The example in the code does not set a rule for you. Because the option limits reported space, review that value before you save it. No single size suits every home, so pick a number you can live with and change it later if needed.
These steps show how to connect one laptop to one share. They do not cover how to plan shared space or accounts for several laptops. So treat that as a separate task before you add another device. First, finish this connection and check that its initial run completes as expected.
For remote access, a private network tool can let the laptop reach your home computer elsewhere; our guide shows how to set up Tailscale and reach the box from anywhere. Keep the first run on your home network as described above. Then treat access from elsewhere as the next part of your plan.
Let your Time Machine server take the night shift

Imagine the same sofa the next morning, with your laptop still resting where you left it. This time, the first run has finished overnight on its own. The drawer still holds the old drive, but you no longer need to fetch it for this routine. Your Time Machine server has a shared place, a space limit, and a connection the laptop can use.
Like the post box at home, it gives those copies somewhere to go while life carries on. That is the point of this backup solution: a routine that can run automatically once you have made the connection. You still check the result, because finding a share and finishing a copy are different milestones.
So take the final check before you call the job done. Look for the completed run, and make sure the chosen share is the one you intended. If the first pass still runs, give it more time on the home network. Keep the laptop plugged in overnight if that suits your evening.
Then return to the photos and work that made you want this in the first place. Imagine opening that reminder again and finding a fresh copy instead of another long gap. Start with the shelf, follow each line, and let the first finished run be your proof.









































