<ikwildrpepper>
gchristensen: will add it once I get close to a computer
<niksnut>
netlify usage seems to have gone down
<ikwildrpepper>
\o/
<ikwildrpepper>
gchristensen: zfs cmd executed
<gchristensen>
cool
<gchristensen>
ikwildrpepper: disk space should have gone down after :)
<ikwildrpepper>
gchristensen: looks like it deleted 1.8TB
<ikwildrpepper>
gchristensen: how often does it push a snapshot?
<ikwildrpepper>
I changed my ssh config for a sec to include: command="/bin/myscript.sh",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty
<ikwildrpepper>
(where /bin/myscript.sh is zfs)
<gchristensen>
oh nice
<gchristensen>
ikwildrpepper: every 5 minutes
<ikwildrpepper>
not sure if it works, we'll see in 5 minutes, I guess
<gchristensen>
[Mon Mar 30 13:44:06 2020] [warn] destination 'rob-backup-server:tank/nixos-org/haumea/safe' does not exist or is offline. will be rechecked every run...
<gchristensen>
missing command
<ikwildrpepper>
bummer :D
<gchristensen>
usage: zfs command args ...
<gchristensen>
where 'command' is one of the following:
<gchristensen>
it seems it can't pass arguments?
<ikwildrpepper>
hm, I thought with ssh it was possible to specify the command, and that args are accepted, lemme check
<gchristensen>
keep looking, I can run the send side at will:)
teto has joined #nixos-infra
<ikwildrpepper>
gchristensen: could you try again?
<gchristensen>
yep
<gchristensen>
[Mon Mar 30 13:53:44 2020] [debug] sending snapshots from rpool/safe to rob-backup-server:tank/nixos-org/haumea/safe
<gchristensen>
hmmm ikwildrpepper you need to `shift` I think?
<gchristensen>
unrecognized command 'zfs list -H -o name -t 'filesystem,volume' tank/nixos-org/haumea/safe'
<ikwildrpepper>
shift
<ikwildrpepper>
exec zfs "$@"
<ikwildrpepper>
this is what I did
<gchristensen>
huh
<gchristensen>
add an `echo "@"` before the shift?
<ikwildrpepper>
works locally for me
<gchristensen>
huh.
<ikwildrpepper>
oh wait, maybe it's because I run as shell
<gchristensen>
oh interesting
<gchristensen>
unrecognized command 'zfs list -H -o name -t 'filesystem,volume' tank/nixos-org/haumea/safe'
<gchristensen>
I bet it isn't passing individual argumnts, and depends on shell splitting, d'oh
<ikwildrpepper>
I pushed the echo's btw
<ikwildrpepper>
(before and after)
<gchristensen>
oh, they should go to stderr I guess -- znapzend is thinking they're useful data hah
<ikwildrpepper>
should go to stderr now
<gchristensen>
zfs list -H -o name -t 'filesystem,volume' tank/nixos-org/haumea/safe
<gchristensen>
hrm
<gchristensen>
$ zfs foeu o e u o
<gchristensen>
unrecognized command 'foeu'
<ikwildrpepper>
the list command is empty for me as well locally
<gchristensen>
oh oh oh
<gchristensen>
-c zfs list -H -o name -t 'filesystem,volume' tank/nixos-org/haumea/safe
<gchristensen>
zfs list -H -o name -t 'filesystem,volume' tank/nixos-org/haumea/safe
<gchristensen>
unrecognized command 'zfs list -H -o name -t 'filesystem,volume' tank/nixos-org/haumea/safe'
<gchristensen>
znapzend, stupider than you'd like
<gchristensen>
apparently you have to shift off the -c, and shift off the zfs
<ikwildrpepper>
ok, so 2 shifts
<gchristensen>
let me know when you're ready
<ikwildrpepper>
one sec
<ikwildrpepper>
gchristensen: done
<gchristensen>
yeah this isn't going to work
<ikwildrpepper>
:D
<gchristensen>
[Mon Mar 30 14:22:46 2020] [info] refreshing backup plans...
<gchristensen>
-c zfs list -H -o name -t 'filesystem,volume' tank/nixos-org/haumea/safe
<gchristensen>
missing command
<gchristensen>
it passes ["-c", "zfs list ..."]
<ikwildrpepper>
one more try?
<gchristensen>
[Mon Mar 30 14:23:56 2020] [info] found a valid backup plan for rpool/local...
<gchristensen>
-c zfs list -H -o name -t 'filesystem,volume' tank/nixos-org/haumea/safe
<gchristensen>
missing command
<ikwildrpepper>
ok. I've reverted to old config for now. I'll ponder more about it before bothering you :D
<gchristensen>
:D
<gchristensen>
one option is we fix fix znapzend to stop being so stupid :P
<gchristensen>
it is just some Perl
<ikwildrpepper>
it is 'just' some perl? :D
<gchristensen>
well I was hoping you still liked perl so you'd do it for me :D
<ikwildrpepper>
it's perl, niksnut is the only person that likes to get his hands dirty on perl
<gchristensen>
I find it pretty annoying that they decided to write code to quote shell arguments instead of ... not write code ... and just pass them as arguments to `exec`
<gchristensen>
ikwildrpepper: (just confirmed znapzend was able to send you a recent snap and do a clean-up)