Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

ZnapZend plugin for unRAID

Featured Replies

1 hour ago, JJJonesJr33 said:

 

 

You will need to run 
```
znapzend --daemonize
```
```
touch /boot/config/plugins/unRAID6-ZnapZend/auto_boot_on
```

 

Then reboot. That should fix it. To test run the

```
znapzend --daemonize
```

command again after reboot and it should tell you it’s already running. 

It seems auto_boot_on doesn't autostart it as I had that, maybe ill just use user scripts to run znapzend --daemonize at boot

 

Edit: I added it to array startup via user script and it works!

Edited by Jclendineng

  • 3 months later...
  • Replies 66
  • Views 24.9k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • I'm posting a problem and solution, I found this exact error in a few other places but not here:   /usr/bin/perl: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by /usr/lib64/perl5

  • Could you please update plugin to last version? Plugin uses v 0.21.2, but on github already 0.23.2.   And also do you have any plan for feature developemnt?

  • Installed, configuring and very happy you've taken the time to create this!  Thankyou very much @steini84.   Marshalleq

Posted Images

Has someone find a solution to get the snapshots in windows shadow copy's with 6.12? Now the share's are configured unter the unraid gui "shares". Before i have configured them under the smb-extras.conf and there i have to put the following under each share:

 

vfs objects = shadow_copy2
shadow: snapdir = .zfs/snapshot
shadow: sort = desc
shadow: format = %Y-%m-%d-%H%M%S
shadow: localtime =  yes

 

But now because i have configured it under the unraid gui i can not make this options and i can not see the snapshots anymore in Windows 10. My Snapshots look like this:

 

image.thumb.png.08d4b45f7630c639b2165b024f013e90.png

 

Someone has an idea?

  • 2 weeks later...
On 7/1/2023 at 3:39 AM, Ironcurtain said:

Has someone find a solution to get the snapshots in windows shadow copy's with 6.12? Now the share's are configured unter the unraid gui "shares". Before i have configured them under the smb-extras.conf and there i have to put the following under each share:

 

vfs objects = shadow_copy2
shadow: snapdir = .zfs/snapshot
shadow: sort = desc
shadow: format = %Y-%m-%d-%H%M%S
shadow: localtime =  yes

 

But now because i have configured it under the unraid gui i can not make this options and i can not see the snapshots anymore in Windows 10. My Snapshots look like this:

 

image.thumb.png.08d4b45f7630c639b2165b024f013e90.png

 

Someone has an idea?


To what I have seen so far that has not been added for ZFS samba shares just yet.

So far my work around was to still use smb-extras.conf and not the shares created by the gui - just change your path in the config to map to the new location of where the ZFS pool is

Example:

[Storage]                                                                                                                                                           >
path = /mnt/storage
public = yes
browseable = yes
guest ok = yes
writeable = yes
read only = no
create mask = 0775
directory mask = 0775
vfs objects = shadow_copy2
shadow: snapdir = .zfs/snapshot
shadow: sort = desc
shadow: format = zfs-auto-snap_%S-%Y-%m-%d-%H%M
shadow: localtime =  yes


 

  • 3 weeks later...

Have I understood it correctly that znapzend is zfs-replication build into an "easier" syntax and with build in scheduling and stuff?

  • 3 months later...

Will this be updated to 21.2?

On 8/1/2023 at 8:29 PM, isvein said:

Have I understood it correctly that znapzend is zfs-replication build into an "easier" syntax and with build in scheduling and stuff?

Sort of.  But it combines all that and includes scheduling and it's all stored in the drive structure.  So it's quite a bit more really.

  • 2 months later...

Does anyone know why I keep getting the following when I try to either list or export my config? Assume something isn't setup correctly

 

zLog must be specified at creation time!

 

I used the 

 

znapzend --logto=/var/log/znapzend.log --daemonize

 

when starting the daemon so not sure what log it's referring to?

Edited by davidfava

I don't understand why this has turned into such a steaming pile.  I looked into sanoid and syncoid out of desperation and it looks very complicated to set up.  Znapzend is running and starts at boot.  Yet it never runs a backup job.  Foundational stuff like this makes me want to jump ship from unraid.  Something in the zfs implementation from the unraid folks is what has messed it up.  If I didn't have a broken arm at the moment I think id just virtualise unraid and be done with it.  I mean they've actually never gotten this foundational stuff right, but plugins have usually filled the gaps.  That's not even possible now it seems.

 

Perhaps because dev pack and nerd pack are no longer available?

Edited by Marshalleq

4 hours ago, Marshalleq said:

I don't understand why this has turned into such a steaming pile.  I looked into sanoid and syncoid out of desperation and it looks very complicated to set up.  Znapzend is running and starts at boot.  Yet it never runs a backup job.  Foundational stuff like this makes me want to jump ship from unraid.  Something in the zfs implementation from the unraid folks is what has messed it up.  If I didn't have a broken arm at the moment I think id just virtualise unraid and be done with it.  I mean they've actually never gotten this foundational stuff right, but plugins have usually filled the gaps.  That's not even possible now it seems.

 

Perhaps because dev pack and nerd pack are no longer available?


I still have znapzend installed, but I ended up switching to Sanoid. I seen the video Spaceinvader One did and after that it's been setup once and forget. I recommand checking out Part A and Part B of his video to get you going.

But to make it simplified

  1. Install Sanoid
  2. Setup Script under user scripts for each backup you want ( FYI: in this all you need to change the is "source_pool" and "source_dataset" under Source for snapshotting and/or replication )
  3. Setup custom cron job for task ( if you have mutiple sanoid tasks, make sure they are seperated by a few mins so they don't mess with each other when running - example "0 12 * * *", "5 12 * * *", ect ... )
  4. Run the task manually for the first time
  5. Done

Hope that helps.

P.S I'm on version 6.12.6 atm
P.S.S Nerd pack and Dev Pack kind of turned into Nerdtools, very similar but some things did change companred to the packages you could load that way. I still load the .txz plugins under the extra folder in my main flash drive for the ones I need.

Edited by JJJonesJr33

Ive been grumpily playing with it.  I say grumpily because I really just want znapzend to work and a few things about Sanoid are pretty horrible.  Like it doesn't run in the background and you have to rely therefore on cron to run it in the background which makes it less capable and a little bizarre with how the cron aligns to the script schedule.  For example I want hourly and daily snapshots at the source and weekly monthly and yearly at the destination - cant be done.  Might be able to do it if I ditch space invaDERS script which honestly we shouldn't have to use it anyway, something to look into.  Could also do it using two scripts for one location which would be silly.  Don't like by default it snaps all child datasets either.  All in all it needs more time spent trying to make basic functionality work that should be baked into the os.  

 

I'm nursing a concussion at the moment, so it probably feels harder than it actually is.

Edited by Marshalleq

Just updating that for the parts that are working, it's definitely working better than znapzend.  In particular cleaning up old snapshots.  Thanks for the help, just gotta follow through and stop using space invaders script then I think from what Ive read it will give me everything I need.

  • Author
On 12/1/2023 at 2:12 AM, isvein said:

Will this be updated to 21.2?

Just did

  • 11 months later...
On 2/15/2024 at 4:23 PM, steini84 said:

Just did

Could you please update plugin to last version?

Plugin uses v 0.21.2, but on github already 0.23.2.

 

And also do you have any plan for feature developemnt?

Does anyone know if znapzend can append “hour” “day” “week” “month” “year” to the end of the snapshot name depending on which iteration it’s snapshotting?

 

znapzendzetup create --recursive \
--tsformat='%Y-%m-%d-%H:%M:%S' \
SRC '1day=>1hour,7day=>24hour,1month=>1week,6month=>1month' cache/appdata \
DST '7day=>24hour,1month=>1week,6month=>1month' zfs/snapshots/appdata

 

Here is my snapshot protocol, would I have to create one for each duration, hour, day, week, month in order for that to work? Can you even add text after the --tsformat=''%Y-%m-%d-%H:%M:%S' + 'hour'' ?

 

Make this:image.png.73c1d78a209d24195aa39d8924717c62.png

 

Look like this: image.png.ba906daaa398679607ec4931b07ba4d0.png

 

so i can visually differentiate between whatever the first snapshot is and whether it's my hourly, daily, weekly, monthly snapshot?

Edited by MowMdown

2 hours ago, MowMdown said:

Can you even add text after the --tsformat=''%Y-%m-%d-%H:%M:%S' + 'hour'' ?

concatenation doesnt work here

https://github.com/oetiker/znapzend/blob/master/doc/znapzendzetup.pod

https://metacpan.org/pod/strftime

Plugin doesn`t add any additional functionality.

 

For example I even don`t use this plugin, I downloaded znapzend, took 3 files and use them, after each array start I automatically run command:

Quote

znapzend --logto=/var/log/znapzend.log --daemonize

 

All your question related to znapzend itself and should be addressed to their github as support request.

 

  • 2 months later...

I upgraded from 6.9.2 to 7.0.1 but now znapzend is not running on startup anymore. I already read the posts and i figured, that if it is not starting by itself I will just write the "znapzenz --daemonize" command in my go file. Then I logged the output away and after a reboot this was the output:

/var/tmp/go: line 7: znapzen: command not found

 

When I start it again manually in the console everything starts and works fine. I read the Unraid documentation about when and what is startet at boot and plugins should be loaded before the go file. Does anyone know what the problem is here?

Edited by tabbse
spelling error

  • 6 months later...
On 3/19/2025 at 11:18 AM, tabbse said:

I upgraded from 6.9.2 to 7.0.1 but now znapzend is not running on startup anymore. I already read the posts and i figured, that if it is not starting by itself I will just write the "znapzenz --daemonize" command in my go file. Then I logged the output away and after a reboot this was the output:

/var/tmp/go: line 7: znapzen: command not found

 

When I start it again manually in the console everything starts and works fine. I read the Unraid documentation about when and what is startet at boot and plugins should be loaded before the go file. Does anyone know what the problem is here?

I'm looking at getting it to auto start too. My guess in your case is that the go script runs before the pools are ready. I'm going to try putting the daemonize command in a User Script that I'll set to Array Start.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.