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

Sort snapshots by creation date #19

Open
Jip-Hop opened this issue Jan 16, 2018 · 4 comments
Open

Sort snapshots by creation date #19

Jip-Hop opened this issue Jan 16, 2018 · 4 comments

Comments

@Jip-Hop
Copy link

Jip-Hop commented Jan 16, 2018

This plugin is awesome. I love a complete overview like this.
Easily the best GUI for ZoL I've come across.
I thought it woud be more intuitive to list snapshots by creation date.
In zfsmanager-lib.pl instead of:

zfs list -H -o name,$config{'list_snap'} -t snapshot $snap
You could use:
zfs list -H -o name,$config{'list_snap'} -t snapshot $snap -s creation

I also noticed the rollback button isn't active.
Hasn't that been implemented yet?

I've installed it on Debian 9 in a VM.
But would love to use this on my home server.
Do you think it's stable enough in it's current state?
Are you using it yourself?

@Jip-Hop
Copy link
Author

Jip-Hop commented Jan 16, 2018

Perhaps it would be nice to add another column Created (like Used and Refer):
zfs list -t snapshot -o name,creation -s creation

jonmatifa added a commit that referenced this issue Jan 16, 2018
@jonmatifa
Copy link
Owner

jonmatifa commented Jan 16, 2018

Awesome suggestion! I just pushed out an update, I had to overhaul a surprising amount of code to make that work, but I think it works better. I'll have to update the way pool and filesystem lists are generated as well to make them consistent, but for now, we'll test this functionality with just the snapshots.

I have a home server with six 2tb drives in a raidz2 configuration and thats where I end up doing the bulk of the zfsmanager development. I give a warning about using it in production environments just because, but I feel like its ok to use as long as you understand the risks and backup your data. There's always some possibility that some piece of code doesn't behave as expected and irreversibly deletes something, but realistically that's not going to happen. No one has ever reported anything catastrophic happening with it.

There's are some secret parameters that can be edited in the config file. You can either edit the config.info file and uncomment the lines referring to list_zpool, list_snap, and list_zfs which will allow you to customize what properties are shown in the corresponding lists. Alternatively, you can edit the config file directly at /etc/webmin/zfsmanager/config if you just wanted to make a one time change. I implemented it this way because you can break things if you don't format the strings correctly.

@jonmatifa
Copy link
Owner

I also noticed the rollback button isn't active.
Hasn't that been implemented yet?

I haven't implemented this yet, reason being is that I never personally use the rollback function. If there is enough demand from others I can implement it easily enough.

@vinnie-ki
Copy link

Yes, a rollback function for the snapshots could be usefull.
Also the possibility to backup or transfer the snapshots using zfs receive/send. But perhaps that requiers quite a bit of development.

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

No branches or pull requests

3 participants