[OpenIndiana-discuss] zfs snapshot script
Madalin GEANA
madalin.geana at ingro.ro
Mon May 2 15:17:42 UTC 2011
Hello,
Have you tried this one:
http://www.cuddletech.com/blog/pivot/entry.php?id=989
works flawlessly - you just have to fix the date command in variable DATE,
format it as you want, preferably without spaces (use underline '_')
Regards,
Mada
-----Original Message-----
From: Matt Connolly [mailto:matt.connolly.au at gmail.com]
Sent: Sunday, May 01, 2011 4:46 PM
To: Discussion list for OpenIndiana
Subject: [OpenIndiana-discuss] zfs snapshot script
Hi all,
I'm putting together a script to create zfs snapshots after a backup has
been completed (via Apple TimeMachine or rsync for example). When I'm logged
into the machine, I can only access the "zfs snapshot" command as root via
"sudo" or "pfexec". Neither of these are available directly from a ssh
command. For example:
client$ ssh user at server
server$ sudo zfs snapshot blah at blah -> works
..or..
server$ pfexec zfs snapshot blah at blah -> works
..but..
client$ ssh user at host zfs snapshot blah -> fails = permission denied
client$ ssh user at host pfexec zfs snapshot blah -> fails = permission denied
client$ ssh user at host sudo zfs snapshot blah -> fails = sudo: no tty present
and no askpass program specified
What would be the best practice for creating a zfs snapshot based on an
external trigger (eg: message from client after a successful backup).
Regards,
Matt
_______________________________________________
OpenIndiana-discuss mailing list
OpenIndiana-discuss at openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss
More information about the OpenIndiana-discuss
mailing list