Is there a command for spitting out all snapshot task settings?

guermantes

Patron
Joined
Sep 27, 2017
Messages
213
Hi,

Maybe I poke around too much, but I find that I often enter the "Edit task" for all my tasks just to verify their settings and logic, or if I add another dataset and want it replicated in the same way are the others. It's a bit cumbersome to compare the settings for many tasks.

It would be great if it was possible to type something on the command line in order to see all the configured settings for e.g. my periodic snapshot tasks. I guess it might be too much to hope for, but thought I would ask just the same.

Is this possible?
 

Heracles

Wizard
Joined
Feb 2, 2018
Messages
1,401
Hi @guermantes,

If you really wish to reverse engineer it, you can start with :
cat /etc/crontab

You will see that itself use a python script named after snapshot automation.

You can then go read that script and figure out what you are looking for and how to extract it.

Instead, what is it that you can not read from the menu ? It says the schedule, the dataset, the retention and more...
 

guermantes

Patron
Joined
Sep 27, 2017
Messages
213
Instead, what is it that you can not read from the menu ? It says the schedule, the dataset, the retention and more...

I can't get menu/tasks page to display columns for schedule, neither if empty snaps are allowed, nor retention policy for replication tasks. Perhaps that's available in Truenas only? I'm on 11.3-U5.

Thanks for the tip about the python script, it might come in handy over xmas if I can make any sense out of it.
 
Top