Using Wake-on-LAN for a NAS backup Power Saver
Linux Magazine|#285/August 2024: Kernel Exploits
Put your backup server to sleep when you don't need it and then wake it on demand using the Wake-on-LAN feature built into network adapters.
Adam Dix
Using Wake-on-LAN for a NAS backup Power Saver

After recently upgrading my main storage server bit by bit, I found myself with a pile of parts that basically added up to another storage server. I had a capable Network Attached Storage (NAS) solution for files and media, but I needed a second server running on-site as a backup for the main NAS. What I did not want, however, was to pay for a second server running 24/ 7 gobbling up energy. This article explains how to set up a pair of servers in a primary/ backup configuration so that the backup will synchronize itself with the primary server each day, week, month, or however often you like. Once the two are synced, the backup server will turn back off until needed again, thus saving most of the energy costs. This approach has an added benefit in the event of a ransomware encryption attack, because the backup server will most likely be turned off at the time of the attack, making it more likely to escape encryption.

Hardware Configuration

The two servers I describe in this article are used in a home lab and are non-critical. If you are using servers for a business, school, or professional agency, you will have different needs and, ideally, a more expansive budget that could point you toward a different solution. This article is intended as a proof of concept – and as a way to explore some of the tools available in the Linux environment. This basic approach might very well be feasible for other secondary or off-site backups with slight modifications.

This story is from the #285/August 2024: Kernel Exploits edition of Linux Magazine.

Start your 7-day Magzter GOLD free trial to access thousands of curated premium stories, and 9,000+ magazines and newspapers.

This story is from the #285/August 2024: Kernel Exploits edition of Linux Magazine.

Start your 7-day Magzter GOLD free trial to access thousands of curated premium stories, and 9,000+ magazines and newspapers.

MORE STORIES FROM LINUX MAGAZINEView All
MADDOG'S DOGHOUSE
Linux Magazine

MADDOG'S DOGHOUSE

The stakeholder approach of open source broadens the pool of who can access, influence, and benefit from information technologies.

time-read
3 mins  |
#289/December 2024: Coding with AI
MakerSpace
Linux Magazine

MakerSpace

Rust, a potential successor to C/C++, claims to solve some memory safety issues while maintaining high performance. We look at Rust on embedded systems, where memory safety, concurrency, and security are equally important

time-read
10+ mins  |
#289/December 2024: Coding with AI
In Harmony
Linux Magazine

In Harmony

Using the Go Interface mechanism, Mike demonstrates its practical application with a refresh program for local copies of Git repositories.

time-read
9 mins  |
#289/December 2024: Coding with AI
Monkey Business
Linux Magazine

Monkey Business

Even small changes in a web page can improve the browsing experience. Your preferred web browser provides all the tools you need to inject JavaScript to adapt the page. You just need a browser with its debugging tools, some knowledge of scripting, and the browser extension Tampermonkey.

time-read
10+ mins  |
#289/December 2024: Coding with AI
Smarter Navigation
Linux Magazine

Smarter Navigation

Zoxide, a modern version of cd, lets you navigate long directory paths with less typing.

time-read
4 mins  |
#289/December 2024: Coding with AI
Through the Back Door
Linux Magazine

Through the Back Door

Cybercriminals are increasingly discovering Linux and adapting malware previously designed for Windows systems. We take you inside the Linux version of a famous Windows ransomware tool.

time-read
9 mins  |
#289/December 2024: Coding with AI
Page Pulse
Linux Magazine

Page Pulse

Do you want to be alerted when a product is back in stock on your favorite online store? Do you want to know when a website without an RSS feed gets an update? With changedetection.io, you can stay up-to-date on website changes.

time-read
8 mins  |
#289/December 2024: Coding with AI
Arco Linux
Linux Magazine

Arco Linux

ArcoLinux, an Arch derivative, offers easier installs while educating users about Arch Linux along the way.

time-read
5 mins  |
#289/December 2024: Coding with AI
Ghost Coder
Linux Magazine

Ghost Coder

Artificial intelligence is increasingly supporting programmers in their daily work. How effective are these tools? What are the dangers? And how can you benefit from Al-assisted development today?

time-read
10+ mins  |
#289/December 2024: Coding with AI
Zack's Kernel News
Linux Magazine

Zack's Kernel News

Chronicler Zack Brown reports on the latest news, views, dilemmas, and developments within the Linux kernel community.

time-read
9 mins  |
#289/December 2024: Coding with AI