PBS Backup a MacBook?

I guess really a "mac client" is not what is needed so much as an option to easily provision or provide for the automatic provisioning of an SMB share. If that were the case, then Time Machine could simply perform its regular backups and point itself at the PBS, no?

That would seem a less invasive and support needy mechanism for allowing PBS to handle backing up Mac clients.

Stuart
 
I guess really a "mac client" is not what is needed so much as an option to easily provision or provide for the automatic provisioning of an SMB share. If that were the case, then Time Machine could simply perform its regular backups and point itself at the PBS, no?

That would seem a less invasive and support needy mechanism for allowing PBS to handle backing up Mac clients.

Stuart
my docker image for proxmoxbackup client can backup SMB shares as schedueled tasks, try it out if you need to do that.

https://github.com/OvrAp3x/ProxmoxBackupClientDocker
 
  • Like
Reactions: flames
Everyone,

Let me first start out by saying that I am quite happy with the backup software that macOS comes with, time machine. That said, there would be some level of convenience with respect to being able to do a back up to PBS directly from macOS. However, right now I run a TrueNAS file server and that is the target for all my PBS backups as well as my macOS backups.

The server that I run TrueNAS SCALE on has the one singular purpose of being a file server. Even with ZFS wanting a lot of RAM it is using only 20GB or just under 1/2 of the 48GB in the server.


Stuart
 
a Mac/Windows port is a lot more work than just "recompiling" for that platform - those OS use different APIs for file access and attributes, locking, .., and use different file systems by default. given that we still have a lot of other plans for PBS as well, it's not super high on the TODO list (the cost/benefit ratio isn't there yet).

@Tmanok:
On the topic of file systems, with APFS, snapshots are a native feature in the file system, so the solution might be made a lot easier. Additionally, Timemachine has been designed to make use of these snapshots so perhaps it could be leveraged with the MacOS client? Might be a good idea to restrict PBS Client to versions of MacOS only using APFS for that reason as the older HFS+ does not have those snapshot capabilities to the best of my knowledge. Another thought, as Timemachine might be a bit restrictive, you may find that it is too limited for your purposes.

As @Tmanok mentioned, it is very straightforward to do backups on macos using the apfs localsnapshot facility, which stores all the file-level content within a "sparsebundle" (virtual disk-like) "file" which then can be stored/represented straightforwardly on linux filesystems. Many of us host these sparsebundles on samba fileservers configured to present themselves as Apple TimeMachine devices. It would be much better not to need to run a separate server for the purpose, but rather to be able to backup directly from the device.

Here's an example of leveraging the localsnapshot capability for doing borg backups: https://gist.github.com/QuantumGhost/1aae8eb8527c9d522fe2a57f214f6ee5

Now that nixpkgs has proxmox-backup-client packaged, presumably anyone with Nix installed might be able to leverage that from a Mac. I haven't tested it yet, built hope to do so soon. Assuming that works, perhaps we can validate definitively whether all works with nothing more than a darwin build.
 
Last edited:
  • Like
Reactions: Tmanok
TL;DR

+1 for macOS client


a Mac/Windows port is a lot more work than just "recompiling" for that platform - those OS use different APIs for file access and attributes, locking, .., and use different file systems by default. given that we still have a lot of other plans for PBS as well, it's not super high on the TODO list (the cost/benefit ratio isn't there yet).
On the topic of file systems, with APFS, snapshots are a native feature in the file system, so the solution might be made a lot easier. Additionally, Timemachine has been designed to make use of these snapshots so perhaps it could be leveraged with the MacOS client? Might be a good idea to restrict PBS Client to versions of MacOS only using APFS for that reason as the older HFS+ does not have those snapshot capabilities to the best of my knowledge. Another thought, as Timemachine might be a bit restrictive, you may find that it is too limited for your purposes.

On my previous Linux workstation I wrote myself some systems services and timers, that leverage btrfs snapshots done by snapper.
While the backup client works quite well by itself, that was my way to go because otherwise the client complained about some files, specially opened ones.

Now that I'm on macOS, I'd really appreciate some solution that would be a little less of a hack on my side.
 
Last edited:
  • Like
Reactions: Tmanok
I guess really a "mac client" is not what is needed so much as an option to easily provision or provide for the automatic provisioning of an SMB share. If that were the case, then Time Machine could simply perform its regular backups and point itself at the PBS, no?

That would seem a less invasive and support needy mechanism for allowing PBS to handle backing up Mac clients.

Stuart
Look, you can do that, but in my experience over the last two decades of backing up using TimeMachine, remote backups become corrupted and this is still an unresolved issue in 2024. Additionally, you will need to configure your SMBv3 very carefully if you want any support from Apple to resolve issues related to remote TimeMachine configurations [1].

At this point, some of my clients who have IT departments are forced to regularly verify backups manually for their fleets (100+ Macs) but most of them (especially those who I have decision making power in) use an open source 3rd party software. While 3rd party software may work and receive support from the communities or companies performing the backups, I do not believe they are superior to Proxmox Backup Server by most metrics- let alone the fact that they are not centrally archived under one system nor able to be synchronized off-site seamlessly. By the way, those who use TimeMachine do not "allow" their staff to store important corporate information locally on the Macintoshes because of this situation, unless they are using a 3rd party backup solution. It's sad because APFS is a great leap in technology from HFS+, so Macintoshes should be more reliable than ever, but only having a single copy of data is the same as having 0 copies of that data in risk management as we know...

If you decide to correctly configure a VM with the required SMBv3 attributes for TimeMachine, still consider backing it up with Proxmox Backup Server, as you will ocassionally need to restore the VM's repository as TimeMachine is an unreliable backup solution- to take it a step further, many times you need to completely delete the repository and form a new backup over again because TimeMachine fails to take an old (valid) backup and combine it with an up to date snapshot of the system. I don't know why it's broken like this, but the error has been ongoing since AFP became deprecated years and years ago. Apple doesn't care about or like servers, they'd rather you pay them to use their SaaS Cloud (iCloud) for everything server related.

Put simply, TimeMachine is inferior to Proxmox Backup Server by a mile, and I hold true on the need for a MacOS client.

1. https://developer.apple.com/library.../NetworkingInternetWeb/Time_Machine_SMB_Spec/


Tmanok
 
  • Like
Reactions: edwin2024

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!