A little tip that maybe it’s not so well known. When passing an argument to the -f option (–file) to GNU tar, you can specify a remote address using the standard colon format. For example
tar cfv user@remotehost:/path/to/tar /files/to/archive
will try to connect to remotehost via SSH and authenticate as user (asking the password or using your preferred ssh auth method). Obviously you have to have rsh on your local machine and an sftp capable server on the other side.
Nice tip, I can’t think of any use for it right this second, but I’m sure I’ll find something along the way ;)
Thanks!
Well, for example combined with a passwordless key access to a remote host, you have a secure way to remotely backup your data through the Internet with a oneliner.
Somehow i missed the point. Probably lost in translation :) Anyway … nice blog to visit.
cheers, Digest!