Build a Local Backup Server with an Old Laptop and Ubuntu
Give your aging laptop a second life by converting it into a dedicated, low-power home backup server with Ubuntu and automated sync tools.

Most of us have an old laptop gathering dust in a drawer—a machine that is too slow for modern multitasking but perfectly functional at its core. Instead of letting it contribute to electronic waste, you can repurpose it into a high-performance local backup server. This setup provides a private alternative to expensive cloud subscriptions, giving you physical control over your data and significantly faster transfer speeds over your home network.
By using Ubuntu and open-source synchronization tools, you can create a 'set-and-forget' system that automatically mirrors your most important documents from your primary workstation. This guide will walk you through the process of installing a lightweight OS, configuring power management for a 'lid-closed' operation, and setting up automated backup scripts that ensure your data remains safe even if your main computer fails.
Why Your Old Laptop is a Backup Powerhouse
Laptops are uniquely suited for home server roles because they come with a built-in Uninterruptible Power Supply (UPS): the battery. If your home loses power, the laptop stays on long enough to finish its current write operation and shut down gracefully, preventing data corruption. Additionally, laptop components are designed for power efficiency, meaning your DIY server won't significantly impact your electricity bill compared to a full-sized desktop tower.
To get started, you will need the laptop, a reliable power adapter, and an external hard drive if the internal storage is insufficient. Since we will be running this as a 'headless' server (meaning no monitor or keyboard needed after the initial setup), you can tuck it away on a shelf near your router.
Step 1: Installing Ubuntu Server
For this project, we recommend Ubuntu Server 22.04 LTS or newer. Unlike the desktop version, the Server edition lacks a graphical user interface (GUI), which saves system resources and increases stability. Download the ISO from the official Ubuntu website and flash it to a USB drive using a tool like Rufus or BalenaEtcher.
During the installation process, ensure you select the following options for the best experience:
- Use an Ethernet connection instead of Wi-Fi for maximum stability.
- Select 'Install OpenSSH Server' when prompted so you can manage the device remotely.
- Choose to 'Update to the latest version' during the install to patch security vulnerabilities.
- Set a static IP address if you are comfortable with networking, or take note of the IP assigned by your router.
Step 2: Configuring Lid and Power Settings
By default, Ubuntu will suspend or hibernate when you close the laptop lid. To function as a server, we need to disable this behavior so the machine stays awake even when closed. This requires editing the login manager configuration file.
Open the configuration file using the nano editor. You will need to find the line for HandleLidSwitch and change its value to 'ignore'. This ensures the system ignores the physical state of the hinge.
sudo nano /etc/systemd/logind.conf
# Find the line: #HandleLidSwitch=suspend
# Change to: HandleLidSwitch=ignore
sudo systemctl restart systemd-logindStep 3: Setting Up Automated File Syncing
The engine of our backup server is Rclone or Rsync. These tools are industry standards for moving data efficiently. Rsync is excellent for local network transfers because it only copies the parts of files that have changed, saving time and bandwidth.
To automate this, we use Cron—the Linux task scheduler. By setting up a Cron job, you can tell the server to reach out to your main computer every night at 2:00 AM and pull any new files. This creates a versioned history of your work without you ever having to click a button.
Step 4: Securing Your Backup Server
Since this server holds your sensitive data, security is paramount. Since it is intended for local use, you should keep it behind your router's firewall and never expose it to the open internet via port forwarding unless you are using a VPN like Tailscale or WireGuard.
We recommend implementing Key-Based Authentication for SSH. This disables password logins entirely, meaning only devices with your unique cryptographic 'key' can access the server. This renders brute-force attacks useless.
Verifying Integrity
A backup is only as good as its last successful run. Periodically log into your server and check the file sizes and dates to ensure the automation is working. You can also set up simple email notifications using 'msmtp' to alert you if a backup fails due to a full disk or network disconnection.
Conclusion: A Sustainable Data Strategy
Building a local backup server is not just about saving money on cloud storage; it is about data sovereignty. By repurposing hardware you already own, you are participating in a circular economy while building a robust, high-speed recovery system that works even when your internet connection goes down.
The best backup is the one you don't have to remember to perform. Automation is the bridge between a plan and a reality.
Expert insights
- Always use the 3-2-1 backup rule: three copies of data, two different media types, and one copy off-site. This DIY server satisfies the second 'copy' and 'media' requirement perfectly.
- Heat is the enemy of old hardware. If you plan to run the laptop closed, ensure it is in a well-ventilated area, as some laptops dissipate heat through the keyboard.
Statistics & data
- Repurposing an old laptop can save an average of 40kg of CO2 emissions compared to purchasing a new entry-level NAS device.
- Ethernet-based local backups are typically 5 to 10 times faster than consumer-grade cloud upload speeds, especially for large video files.
Key takeaways
- Old laptops make excellent servers due to their built-in battery UPS and low power consumption.
- Ubuntu Server provides a stable, lightweight foundation for automated data tasks.
- Disabling the laptop's 'Lid Switch' is essential for headless operation in a compact space.
- Automation via Cron jobs ensures backups happen consistently without human intervention.
Frequently asked questions
Will leaving the laptop plugged in 24/7 damage the battery?
Over years, it may lead to battery swelling. If your laptop supports it, limit the charge threshold to 60-80% via BIOS or Linux TLP settings to extend battery health.
Can I use a Wi-Fi connection for the backup server?
Yes, but it is not recommended for the initial 'heavy' backup. For subsequent incremental backups, Wi-Fi is sufficient if the signal is strong.
Do I need to install a GUI like GNOME or KDE?
No. A GUI consumes significant RAM and CPU. Managing the server via the command line (Terminal) is more efficient and easier to maintain long-term.
External references
Keep learning with StackForge
New, expert-reviewed tutorials are published regularly. Explore more guides in Gadgets & How-To Guides to deepen your skills.
More Gadgets & How-To Guides guides →
Written & reviewed by
Justin Schmella
Senior Industry Researcher & Content Specialist
Justin Schmella is a senior software engineer and technical educator with more than eight years of hands-on experience shipping production systems across web, cloud, and developer tooling. He began his career as a full-stack developer at a fast-growing SaaS company, where he led the migration of a monolithic application to a modern, service-oriented architecture used by hundreds of thousands of users.
Related tutorials

Mastering the macOS Terminal: A Guide to Boosting Productivity
Unlock the true power of your Mac by mastering the command line for faster workflows and advanced system control.

Mastering macOS Window Management: From Stage Manager to Shortcuts
A deep dive into organizing your Mac workspace for better focus and faster multitasking using built-in Apple tools.

Mastering macOS Window Management for Ultimate Productivity
Transform your cluttered Mac desktop into a streamlined workspace using built-in macOS tools and hidden power-user shortcuts.