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

推荐订阅源

Cloudbric
Cloudbric
有赞技术团队
有赞技术团队
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
T
Threat Research - Cisco Blogs
L
LangChain Blog
Simon Willison's Weblog
Simon Willison's Weblog
Project Zero
Project Zero
Latest news
Latest news
S
Schneier on Security
Cisco Talos Blog
Cisco Talos Blog
MyScale Blog
MyScale Blog
C
Check Point Blog
IT之家
IT之家
P
Palo Alto Networks Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
CERT Recently Published Vulnerability Notes
Scott Helme
Scott Helme
The Hacker News
The Hacker News
C
CXSECURITY Database RSS Feed - CXSecurity.com
G
Google Developers Blog
T
Tor Project blog
T
Threatpost
D
DataBreaches.Net
博客园 - 【当耐特】
酷 壳 – CoolShell
酷 壳 – CoolShell
T
Troy Hunt's Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Vercel News
Vercel News
云风的 BLOG
云风的 BLOG
NISL@THU
NISL@THU
P
Privacy & Cybersecurity Law Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
C
Cisco Blogs
博客园_首页
S
Securelist
T
The Exploit Database - CXSecurity.com
Last Week in AI
Last Week in AI
量子位
U
Unit 42
Know Your Adversary
Know Your Adversary
Hugging Face - Blog
Hugging Face - Blog
S
Security Affairs
Google Online Security Blog
Google Online Security Blog
Hacker News: Ask HN
Hacker News: Ask HN
Webroot Blog
Webroot Blog
S
SegmentFault 最新的问题
Engineering at Meta
Engineering at Meta
N
News and Events Feed by Topic
P
Proofpoint News Feed
阮一峰的网络日志
阮一峰的网络日志

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