[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Native ZFS support on Linux and others #1863

Open
tuxmaster5000 opened this issue Jun 21, 2024 · 2 comments
Open

Native ZFS support on Linux and others #1863

tuxmaster5000 opened this issue Jun 21, 2024 · 2 comments

Comments

@tuxmaster5000
Copy link
Contributor

Use case

It is currently possible to back up a ZFS as a file system, but you have to do without all the advantages of ZFS such as encryption, volumes, Qutas etc. It would therefore be better if there were a native C/C++ module. I had a look at the libzfs and libzfs-core library, which comes with ZFS. You would actually find everything here. Incremental backups would then be possible for the datasets and full backups for the volumes (also as part of an incremental backup).
When restoring, you can do exactly the same as with the databases, where you write the restore directly to ZFS again or store it as a "zfs receive" blob. Depending on how you specify the destination.

Proposal

sample code for an file set using this plug-in
Plugin = "zfs"
":tanks=" # default "all" tanks, list of tanks or " none" to specify volumes/datasets
":exclude-datasets=" #default none exclude, when tanks will be all or list
":exclude-volumes=" #default none exclude, when tanks will be all or list
":datasets=<tank/foo, tank2/bar>" #set of datasets to backup when :tanks will be "none"
":volumes=<tank/bar, tank2/foo>" #set of volumes to backup when :tanks will be "none"
":snapshot-prefix=" #prefix for the dataset snapshots in the ZFS world for backps, default: bareos

Tracking Issues

No response

@tuxmaster5000 tuxmaster5000 added enhancement needs triage Somebody needs to look at this labels Jun 21, 2024
@arogge arogge removed the needs triage Somebody needs to look at this label Jun 27, 2024
@arogge
Copy link
Member
arogge commented Jun 27, 2024

Hi,
thank you for the idea. We already work on a lot of storage system support code. However, ZFS is not one of our priorities and will probably not be implemented unless somebody funds the development.
Of course, we are always happy to accept external contributions though.

@tuxmaster5000
Copy link
Contributor Author

I picked up the spring glove and started the implementation in a fork.
As I only have a little time, it may take a while, but I'm trying to keep the fork synchronised with the master so that when it's "finished" it can easily be transferred to the master.

If anyone wants to participate, the fork can be found here:
https://github.com/tuxmaster5000/bareos/tree/ZFS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants