惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

GbyAI
GbyAI
Simon Willison's Weblog
Simon Willison's Weblog
Microsoft Security Blog
Microsoft Security Blog
Y
Y Combinator Blog
The GitHub Blog
The GitHub Blog
Engineering at Meta
Engineering at Meta
F
Fortinet All Blogs
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
A
About on SuperTechFans
Last Week in AI
Last Week in AI
月光博客
月光博客
有赞技术团队
有赞技术团队
P
Proofpoint News Feed
MyScale Blog
MyScale Blog
Martin Fowler
Martin Fowler
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
C
Check Point Blog
U
Unit 42
The Register - Security
The Register - Security
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Hugging Face - Blog
Hugging Face - Blog
阮一峰的网络日志
阮一峰的网络日志
V
Visual Studio Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
D
DataBreaches.Net
WordPress大学
WordPress大学
aimingoo的专栏
aimingoo的专栏
H
Hacker News: Front Page
Recent Announcements
Recent Announcements
C
CXSECURITY Database RSS Feed - CXSecurity.com
Latest news
Latest news
小众软件
小众软件
P
Palo Alto Networks Blog
PCI Perspectives
PCI Perspectives
Security Latest
Security Latest
S
Secure Thoughts
Scott Helme
Scott Helme
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
T
Threat Research - Cisco Blogs
P
Proofpoint News Feed
M
MIT News - Artificial intelligence
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Google DeepMind News
Google DeepMind News
Recorded Future
Recorded Future
O
OpenAI News
S
Securelist
云风的 BLOG
云风的 BLOG
H
Help Net Security
T
Troy Hunt's Blog

Whexy Blog

We lost the AIxCC. So, what now? Arm VMM with Apple's Hypervisor Framework Driving WaveShare E‐Paper Display with a Raspberry Pi Pico in MicroPython Use cgroup v2 inside docker containers Annual Hit Piece: Fuzzing Top Conference Paper Debunking Report Solving SSH Key Login Issues on Synology NAS Can SSD Cache Improve Synology NAS Write Speeds? Virtualization is all you need Running Windows Games on Mac Without Virtual Machines Tears of the Kingdom: End of an Era Anonymous CDN Traffic Relay Self-host Relay Service with CDN Home Networking Solution Building Your Own Blog System Connecting Smart Devices to SUSTech Campus Network Function Color Theory Stop Forkin' Around: Faster Creating of Large Processes on Linux PMU Interrupts: How to handle them Asynchronous Mutex Using QEMU to run Linux images on M1 Macbook Alligator In Vest - My first research work Experience Using Several Plugins in Complex LaTeX Projects Variance in Rust Understanding Rust Generic Traits SUSTeam: Ultimate Gaming Platform Inline Assembly Language in C React Learning Notes Building a School Bus Schedule App for Apple Watch 12307 Train Ticket Purchase Platform Sakai and Local Folder Synchronization Building a Super Simple OpenJudge in Two Nights Shell Script for Automatically Logging into SUSTech Campus Network Building a Movie Streaming System in the Dorm
Setting Up Remote Backup for macOS
Whexy · 2019-08-25 · via Whexy Blog

macOS has a magical feature called "Time Machine". When this feature is activated, you can roll back any file in the system to any previous state. In other words, macOS archives the entire state of your system at regular intervals. Using this feature typically requires regularly plugging in a hard drive. In this article, I achieved seamless macOS backup within the local network by configuring some network protocols.

Taking this blog post I'm writing as an example, after opening Time Machine, you'll see this view:

After testing, macOS saves every file version after each manual save.

However, to fully enable Time Machine, the built-in hard drive of a MacBook is definitely not enough. Time Machine requires plugging in a hard drive or connecting to a server that supports AFP/SMB protocols to complete backups. The ability to backup to SMB servers is a new feature in version 10.15, which is currently unstable (I personally don't like this protocol much). Today's goal is to make a server on the same local network support the AFP protocol and become a backup server for macOS.

As mentioned in previous articles, I bought this router that used to be a mining machine on Xianyu (Chinese second-hand platform), and I love it dearly. When I first got it in June, I wanted to try using the router to build a remote backup machine. But after many tests, I eventually gave up.

Below I'll briefly introduce several approaches and why I abandoned them.

Netatalk

Using Netatalk can disguise a Linux machine as various devices supporting AFP, including iMac, Airport, etc. After installing Netatalk on the router, the 32MB flash memory was significantly reduced. And no matter what I tried, my MacBook just couldn't recognize it. I finally abandoned the direct impersonation approach.

SMB

By setting up an SMB server, backups are also possible. However, in the various beta versions of macOS 10.15, only a brief version successfully recognized the server. This approach might need to wait until Catalina's official release next month. Temporarily abandoned.

Disk Image

This was a brain-storm solution I came up with. Create a virtual disk image in "Disk Utility", then transfer it to the SMB server's disk. Connect to the SMB server on the MacBook, then mount the image. Backup was successful, but the speed was unbearably slow and connections often dropped. Finally abandoned.

Personal connections are very important. Through acting cute and selling my appearance unbreakable plastic friendship, I got access to an Ubuntu virtual machine on a senior's Hackintosh located in Zhiyuan Building. Installing Netatalk service on Ubuntu is very simple. After a few minutes of setup, Ubuntu successfully impersonated a Time Capsule.

AFP functionality requires opening port 548. Here's where the problem arose: this virtual machine's host is a macOS system, and macOS occupies port 548 by default. Initially, I planned to solve this directly by assigning a virtual network card, but since the senior lacked skills thought it wasn't feasible, this approach also failed. Just when I was about to give up, he proposed four words - network penetration!

Life is hard indeed. If only we had money, we could just buy an AirPort and be done with it. Just when us poor folks were finally seeing light after going through countless difficulties, we discovered we were missing one more tribulation out of the eighty-one. Oh well, I turned to another classmate and got a virtual server that obtained an independent IP through a virtual network card as a jump server.

Configuring frp network penetration is relatively simple. Just follow the configuration shown in this diagram.

From getting the Ubuntu server to setting up the complete service, I surprisingly didn't encounter any obstacles. When the backup started, I thought: "Is this it?"

Indeed, that was it. This was the end.

The AP speed in the school dormitory area is very slow (dormitory area --> Zhiyuan Building). The first backup took a full 6 hours. But after setting up this service, as long as the MacBook is connected to the school's internal network, it will automatically backup every hour. These backups are seamless, taking only a few seconds each time.

Setting up this service fulfilled a wish I had been accumulating for half a year, so I'm writing a blog post to record it.

© LICENSED UNDER CC BY-NC-SA 4.0