napp-it: Snapshot name template

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.

rtomanek

New Member
Apr 28, 2012
3
0
0
Hi,

napp-it seems to be using the following format for snapshot names:
dd.mm.yyyy_hh:mm:ss_customname

customname is what you enter in the UI so this is fully customizable.
However the first date/ time part is always there, as in the template above.

Can I change this template somehow? The reason I am asking is that it contains colons (":") which makes it impossible for me to access the snapshot contents via SMB share from Windows client (as Windows does not like colons in file names).

Thanks!

BTW -- napp-it is great! I fell in love with it, and so did my Microserver :)
 

gea

Well-Known Member
Dec 31, 2010
3,172
1,197
113
DE
Hi,

napp-it seems to be using the following format for snapshot names:
dd.mm.yyyy_hh:mm:ss_customname

customname is what you enter in the UI so this is fully customizable.
However the first date/ time part is always there, as in the template above.

Can I change this template somehow? The reason I am asking is that it contains colons (":") which makes it impossible for me to access the snapshot contents via SMB share from Windows client (as Windows does not like colons in file names).

Thanks!

BTW -- napp-it is great! I fell in love with it, and so did my Microserver :)
see /var/web-gui/data/napp-it/zfsos/_lib/zfslib.pl line 132
I can modify this in next version

or use Windows - previous version to access snaps?
 

rtomanek

New Member
Apr 28, 2012
3
0
0
see /var/web-gui/data/napp-it/zfsos/_lib/zfslib.pl line 132
Thanks! Will change it there.

I can modify this in next version
I think changing this is a good idea overall; no harm in not using the colons and it will make the snapshots more accessible.

While you are at it, you might consider changing the dd.mm.yyyy format to something like yyyy-mm-dd or yyyymmdd (if you're dropping colons from times) -- this will allow the snapshot names/ dirs to sort alphabetically when listed.

So instead of:
$sys{'date'}\_$sys{'hour'}\:$sys{'min'}\:$sys{'sec'}
maybe:
$sys{'year'}$sys{'mon'}$sys{'mday'}\_$sys{'hour'}$sys{'min'}$sys{'sec'}
(my post preview shows some spaces in the format strings above, not sure why this is happening, just ignore them)

Doesn't look as nice as the fully formated version but sorts OK, is accessible from Win and is still very readable.

or use Windows - previous version to access snaps?
Nope, I am stuck with Vista Home which doesn't have the Previous Versions tab :(
 
Last edited:

gea

Well-Known Member
Dec 31, 2010
3,172
1,197
113
DE
I have already changed to a us date format yyyy.mm.dd.hh.mm.ss

About pevious version in Vista home:
as far as I know, there are options to use previous versions
Google Vista Home previous version

Next option is timeslider on OI/Solaris live editions
with the unique feature to select a folder and go back in time over snaps