my docker image for proxmoxbackup client can backup SMB shares as schedueled tasks, try it out if you need to do that.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
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.
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.
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].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
FROM debian:bookworm-slim
RUN apt update --yes && apt full-upgrade --yes && apt install --yes wget && \
echo "deb http://download.proxmox.com/debian/pbs-client bookworm main" >> /etc/apt/sources.list.d/pbs-client.list && \
wget https://enterprise.proxmox.com/debian/proxmox-release-bookworm.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bookworm.gpg && \
apt update --yes && \
apt install --yes proxmox-backup-client && apt autoremove --yes
ENTRYPOINT [ "proxmox-backup-client" ]
docker build --tag pbs:latest .
hostname
so PBS doesn't take the container ID (which will change every time)--rm
)~/Library
if backing up a home directory as shown below)read -s PASSWORD
to securely read in the PBS password value)build
ing, make sure that's correct when run
ning!
read -s PASSWORD
MAC_HOST_PATH=/your/desired/path
CONTAINER_PATH=/container/path
HOSTNAME=${HOST}
PXAR_LABEL=whatever
REPOSITORY='user@realm!api@host:datastore'
FINGERPRINT=pbs:instance:finger:print
docker run --rm --hostname ${HOSTNAME} --name PBS --volume ${MAC_HOST_PATH}:${CONTAINER_PATH} --env PBS_PASSWORD=${PASSWORD} --env PBS_REPOSITORY=${REPOSITORY} --env PBS_FINGERPRINT=${FINGERPRINT} pbs:latest backup --backup-type host --crypt-mode none ${PXAR_LABEL}.pxar:${CONTAINER_PATH} --repository ${REPOSITORY} --exclude Library
brew install
edNow 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.
error: Package ‘proxmox-backup-client-3.2.2’ in /nix/store/65xpqkz92d9j7k5ric4z8lzhiigxsfbg-source/pkgs/applications/backup/proxmox-backup-client/default.nix:149 is not available on the requested hostPlatform:
hostPlatform.config = "aarch64-apple-darwin"
package.meta.platforms = [
"aarch64-linux"
"armv5tel-linux"
"armv6l-linux"
"armv7a-linux"
"armv7l-linux"
"i686-linux"
"loongarch64-linux"
"m68k-linux"
"microblaze-linux"
"microblazeel-linux"
"mips-linux"
"mips64-linux"
"mips64el-linux"
"mipsel-linux"
"powerpc64-linux"
"powerpc64le-linux"
"riscv32-linux"
"riscv64-linux"
"s390-linux"
"s390x-linux"
"x86_64-linux"
]