samueldr changed the topic of #nixos-infra to: NixOS infrastructure | logs: https://logs.nix.samueldr.com/nixos-infra/
teto has quit [Ping timeout: 256 seconds]
<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
<ikwildrpepper> added this for now: https://pastebin.com/keGDeZF3
<gchristensen> [Mon Mar 30 13:55:35 2020] [debug] cleaning up snapshots on rob-backup-server:tank/nixos-org/haumea/safe
<gchristensen> cool
<ikwildrpepper> seems ok, right?
<gchristensen> d'you mind if I test something? :)
<ikwildrpepper> sure
<ikwildrpepper> i mean, no I don;'t mind
<ikwildrpepper> just don't encrypt my disk and ask for ransom
<gchristensen> hehe
<gchristensen> it actually isn't very useful, unfortunately
<gchristensen> ssh rob-backup-server "zfs || echo hi;" let me echo hi
<ikwildrpepper> no? bummer
<gchristensen> did you get that? :)
<ikwildrpepper> we can tighten it more, this was just a 2 sec try :-p
<gchristensen> yeah
<gchristensen> I wonder what if you set that user's $SHELL to be /path/to/zfs ?
<gchristensen> wait no that is probably bad lol
<ikwildrpepper> it would get a zfs too many then
<ikwildrpepper> hehe
<gchristensen> hmm ikwildrpepper what if you set your script as the $SHELL, and did `shift` to pop the first argument off, and then `exec zfs "$@"` ?
<ikwildrpepper> gchristensen: hm, any idea how to set the shell?
<gchristensen> now you're asking hard questions
<ikwildrpepper> error: /nix/store/hfg9scxzjpq58bf6gh6giinlhi1adwq7-zfs-ssh is not a shell package
<ikwildrpepper> hehe
<gchristensen> I guess you'd have to add it to environment.shells heh
<ikwildrpepper> nah, added a shellPath attr to the derivation seemed to 'work'
<gchristensen> oh cool
<ikwildrpepper> gchristensen: could you retry?
<gchristensen> unrecognized command 'zfs || wall hi; echo 0'
<gchristensen> usage: zfs command args ...
<gchristensen> :D
<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)
<ikwildrpepper> gchristensen: thnx
<gchristensen> thank you :)
worldofpeace has quit [Ping timeout: 240 seconds]
worldofpeace has joined #nixos-infra
worldofpeace has quit [Ping timeout: 252 seconds]
worldofpeace_ has joined #nixos-infra
worldofpeace_ has quit [Quit: worldofpeace_]