Re: [lxc-users] lxc exec comand, redirecting

2017-04-09 Thread Gregory Lutostanski
I wrap mine in bash -c 'commands' So something like: root@host ~ $ lxc exec container -- bash -c "ssh vps7456.ovh.net 'tar czf - /var/www/website.com/htdocs' | tar xzpf - -C/" Will probably work. --Greg On Apr 9, 2017 5:03 PM, "Ingo Baab" wrote: Hello lxc-users, Inside a Linuxcontainer I use

[lxc-users] lxc exec comand, redirecting

2017-04-09 Thread Ingo Baab
Hello lxc-users, Inside a Linuxcontainer I use: root@container ~ $ ssh vps270841.ovh.net tar czf - /var/www/website.com/htdocs | tar xzpf - -C/ to get a tar archive from another remote server by ssh and extract it inside the container, works fine. But how can I achieve the same from the