Bought a 4TB external USB/NVME device for my workstation.
Installed Samba and configured it to use the "fruit"
module to offer up a Time Machine share for the
Mac Studio. (Also using it with Timeshift on the
workstation itself, but that part was easier.)
(Backups are good; automated versioned backups are better.)
On 2025-01-07, vallor <vallor@cultnix.org> wrote:
Bought a 4TB external USB/NVME device for my workstation. Installed
Samba and configured it to use the "fruit" module to offer up a Time
Machine share for the Mac Studio. (Also using it with Timeshift on the
workstation itself, but that part was easier.)
(Backups are good; automated versioned backups are better.)
I have setup "time machine" backups on two of my servers, using rsync to
a local external drive, but I have not figured out how to do it to a
Samba share. On the local external drive, using ext4 file system, hard
links make it very space efficient, but I don't think you can do that
with a Samba mounted remote drive. Any hints? Do you run the rsync on
the file server, so that you can do the hard links on the backup drive's
ext4 file system while the backup server sees its production client as
the remote Samba mount?
And is there a way to use a cheap remote "storage box" that is only accessible as a Samba NAS as the versioned storage medium with similarly
good storage efficiency?
On 2025-01-07, vallor <vallor@cultnix.org> wrote:
Bought a 4TB external USB/NVME device for my workstation.
Installed Samba and configured it to use the "fruit"
module to offer up a Time Machine share for the
Mac Studio. (Also using it with Timeshift on the
workstation itself, but that part was easier.)
(Backups are good; automated versioned backups are better.)
I have setup "time machine" backups on two of my servers, using rsync to
a local external drive, but I have not figured out how to do it to a
Samba share. On the local external drive, using ext4 file system, hard
links make it very space efficient, but I don't think you can do that
with a Samba mounted remote drive. Any hints? Do you run the rsync on
the file server, so that you can do the hard links on the backup drive's
ext4 file system while the backup server sees its production client as
the remote Samba mount?
And is there a way to use a cheap remote "storage box" that is only accessible as a Samba NAS as the versioned storage medium with
similarly good storage efficiency?
On 2025-01-07, vallor <vallor@cultnix.org> wrote:
Bought a 4TB external USB/NVME device for my workstation.
Installed Samba and configured it to use the "fruit"
module to offer up a Time Machine share for the
Mac Studio. (Also using it with Timeshift on the
workstation itself, but that part was easier.)
(Backups are good; automated versioned backups are better.)
I have setup "time machine" backups on two of my servers, using rsync to
a local external drive, but I have not figured out how to do it to a
Samba share. On the local external drive, using ext4 file system, hard
links make it very space efficient, but I don't think you can do that
with a Samba mounted remote drive. Any hints? Do you run the rsync on
the file server, so that you can do the hard links on the backup drive's
ext4 file system while the backup server sees its production client as
the remote Samba mount?
And is there a way to use a cheap remote "storage box" that is only accessible as a Samba NAS as the versioned storage medium with
similarly good storage efficiency?
On 2025-01-07, vallor <vallor@cultnix.org> wrote:
Bought a 4TB external USB/NVME device for my workstation.
Installed Samba and configured it to use the "fruit"
module to offer up a Time Machine share for the
Mac Studio. (Also using it with Timeshift on the
workstation itself, but that part was easier.)
(Backups are good; automated versioned backups are better.)
I have setup "time machine" backups on two of my servers, using rsync to
a local external drive, but I have not figured out how to do it to a
Samba share. On the local external drive, using ext4 file system, hard
links make it very space efficient, but I don't think you can do that
with a Samba mounted remote drive. Any hints? Do you run the rsync on
the file server, so that you can do the hard links on the backup drive's
ext4 file system while the backup server sees its production client as
the remote Samba mount?
And is there a way to use a cheap remote "storage box" that is only accessible as a Samba NAS as the versioned storage medium with
similarly good storage efficiency?
On 2025-01-08 03:49, Lars Poulsen wrote:
On 2025-01-07, vallor <vallor@cultnix.org> wrote:
Bought a 4TB external USB/NVME device for my workstation.
Installed Samba and configured it to use the "fruit"
module to offer up a Time Machine share for the
Mac Studio. (Also using it with Timeshift on the
workstation itself, but that part was easier.)
(Backups are good; automated versioned backups are better.)
I have setup "time machine" backups on two of my servers, using rsync to
a local external drive, but I have not figured out how to do it to a
Samba share. On the local external drive, using ext4 file system, hard
links make it very space efficient, but I don't think you can do that
with a Samba mounted remote drive. Any hints? Do you run the rsync on
the file server, so that you can do the hard links on the backup drive's
ext4 file system while the backup server sees its production client as
the remote Samba mount?
And is there a way to use a cheap remote "storage box" that is only
accessible as a Samba NAS as the versioned storage medium with
similarly good storage efficiency?
You can not backup using any type of file copy, like rsync, a Linux filesystem into samba, or a windows filesystem.
The only way to do it is using archives like tar.
Anyioe expecting to preserve an ext4 file system accurately on a samba mounted share needs their head examined.
Use NFS.
Bought a 4TB external USB/NVME device for my workstation. Installed
Samba and configured it to use the "fruit" module to offer up a Time
Machine share for the Mac Studio. (Also using it with Timeshift on the
workstation itself, but that part was easier.)
(Backups are good; automated versioned backups are better.)
I have setup "time machine" backups on two of my servers, using rsync to
a local external drive, but I have not figured out how to do it to a
Samba share. On the local external drive, using ext4 file system, hard
links make it very space efficient, but I don't think you can do that
with a Samba mounted remote drive. Any hints? Do you run the rsync on
the file server, so that you can do the hard links on the backup drive's
ext4 file system while the backup server sees its production client as
the remote Samba mount?
And is there a way to use a cheap remote "storage box" that is only
accessible as a Samba NAS as the versioned storage medium with similarly
good storage efficiency?
I'm not doing anything on the backend except provide the
Samba share. MacOS Time Machine has it's own format
for storing versioned data, which is fairly opaque when
looking at the files on the backend filesystem.
I'm also using Timeshift (not Time Machine) on my Linux
workstation, which backs up directly to the ext4 filesystem
on the external drive with rsync. I'm pretty sure that uses
hard links to be space-efficient. (It would be even better
and faster if it hard-linked directories, but that's not a
BCP for Unix.)
On 2025-01-08, The Natural Philosopher <tnp@invalid.invalid> wrote:
Anyioe expecting to preserve an ext4 file system accurately on a samba
mounted share needs their head examined.
Use NFS.
I am not expecting to accurately have an exact ext4 system on a share.
Just keeps the data, but deduplicated. AFAIK,
Lars Poulsen <lars@cleo.beagle-ears.com> wrote:
On 2025-01-08, The Natural Philosopher <tnp@invalid.invalid> wrote:
Anyioe expecting to preserve an ext4 file system accurately on a samba
mounted share needs their head examined.
Use NFS.
I am not expecting to accurately have an exact ext4 system on a share.
Just keeps the data, but deduplicated. AFAIK,
Don't try to directly 'rsync' any Linux filesystem to a samba share as
a backup. Samba will not store everything needed to recover (you'll
have your data, except for those files with names that are 'invalid' in
the windows samba world) but none of the ownerships/permissions will be correct.
If you must use samba as the backing store, then use something like
Restic which stores the data in its own internal format and only
requires "basic file storage and basic filenames" support from the
underlying backing store.
Restic: https://restic.net/
If you must use samba as the backing store, then use something like
Restic which stores the data in its own internal format and only
requires "basic file storage and basic filenames" support from the
underlying backing store.
Restic: https://restic.net/
Or tar(1), with or without compression.
On Wed, 08 Jan 2025 18:25:29 +0000, Rich wrote:
If you must use samba as the backing store, then use something like
Restic which stores the data in its own internal format and only
requires "basic file storage and basic filenames" support from the
underlying backing store.
Restic: https://restic.net/
On 2025-01-08, Lew Pitcher <lew.pitcher@digitalfreehold.ca> wrote:
Or tar(1), with or without compression.
I think restic has promise.
tar(1) does NOT allow me to have a complete backup for every snapshot
without wasting space on multiple copies of the majority of files tht
did not change.
I suppose one could use one large file on the samba server, mount it
through some tunnel that lets you see it as a block device; create an
ext4 file system on that block device, then use rsync to that file system
to create a backup with versioning. Could this be done with a loopback
mount?
On 2025-01-08 03:49, Lars Poulsen wrote:
On 2025-01-07, vallor <vallor@cultnix.org> wrote:
Bought a 4TB external USB/NVME device for my workstation.
Installed Samba and configured it to use the "fruit"
module to offer up a Time Machine share for the
Mac Studio. (Also using it with Timeshift on the
workstation itself, but that part was easier.)
(Backups are good; automated versioned backups are better.)
I have setup "time machine" backups on two of my servers, using rsync to
a local external drive, but I have not figured out how to do it to a
Samba share. On the local external drive, using ext4 file system, hard
links make it very space efficient, but I don't think you can do that
with a Samba mounted remote drive. Any hints? Do you run the rsync on
the file server, so that you can do the hard links on the backup drive's
ext4 file system while the backup server sees its production client as
the remote Samba mount?
And is there a way to use a cheap remote "storage box" that is only
accessible as a Samba NAS as the versioned storage medium with
similarly good storage efficiency?
You can not backup using any type of file copy, like rsync, a Linux filesystem into samba, or a windows filesystem.
The only way to do it is using archives like tar.
Lars Poulsen <lars@cleo.beagle-ears.com> wrote:
On 2025-01-08, The Natural Philosopher <tnp@invalid.invalid> wrote:
Anyioe expecting to preserve an ext4 file system accurately on a samba
mounted share needs their head examined.
Use NFS.
I am not expecting to accurately have an exact ext4 system on a share.
Just keeps the data, but deduplicated. AFAIK,
Don't try to directly 'rsync' any Linux filesystem to a samba share as
a backup. Samba will not store everything needed to recover (you'll
have your data, except for those files with names that are 'invalid' in
the windows samba world) but none of the ownerships/permissions will be correct.
If you must use samba as the backing store, then use something like
Restic which stores the data in its own internal format and only
requires "basic file storage and basic filenames" support from the
underlying backing store.
Restic: https://restic.net/
Apart from samba, I have used the rsync + hardlinks method for backupYes. Its fine if the directory structure you are using to archive is in
with much success between countries, for decades.
On 09/01/2025 16:51, D wrote:
Apart from samba, I have used the rsync + hardlinks method for backup with >> much success between countries, for decades.Yes. Its fine if the directory structure you are using to archive is in fact compatible with the source directory trees permissions and ownerships.
Samba is not.
On Thu, 9 Jan 2025, The Natural Philosopher wrote:
On 09/01/2025 16:51, D wrote:
Apart from samba, I have used the rsync + hardlinks method for backupYes. Its fine if the directory structure you are using to archive is
with much success between countries, for decades.
in fact compatible with the source directory trees permissions and
ownerships.
Samba is not.
It also depends on if you need to save the permissions and ownerships or
not. Sometimes, like in my case, it is enough to save the data. I can
always fix permissions and owners later if I need it.
I have been pleasantly surprised by restic so far. It seems to be well written and to function as expected so far, and performance is quite
good as well.
It look as if I will switch from my classic rsync + hardlinks method to restic. But we'll know for sure in a few months.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 58:58:01 |
Calls: | 10,397 |
Calls today: | 5 |
Files: | 14,067 |
Messages: | 6,417,461 |
Posted today: | 1 |