Gregor Mosheh wrote:
I had a similar, perhaps related question. I'm making
backups via tar to a SMB server, but I would rather
use sftp/scp for it (the NAS supports both SMB and
scp/sftp).

I don't have enough disk space to make the backup to a
tarchive and then scp that tarchive. Is there a way to
make scp/sftp read from a pipe or stdin, rather than
specific filenames? The docs haven't mentioned it, but
since the subject came up I thought it worth asking...

You can tunnel rsync through ssh, this way you only transfer changes, you transfer changes in a secure fassion, and you don't need diskspace to create a backup file that is then transfered, I use:


/usr/local/bin/rsync -Cuvaz --rsh="ssh" /path/to/src/ \
   <myuser>@<myserver>:/path/to/dst

The only, but really anoying, problem about rsync is that /path/to/src/ is not treated as /path/to/src - the above does what you expect: mirror all in src to dst.

So, while you try figuring out the /'s rsync to an empty dir, then you can easily delete.

Cheers, Erik


-- Ph: +34.666334818 web: http://www.locolomo.org S/MIME Certificate: http://www.locolomo.org/crt/2004071206.crt Subject ID: A9:76:7A:ED:06:95:2B:8D:48:97:CE:F2:3F:42:C8:F2:22:DE:4C:B9 Fingerprint: 4A:E8:63:38:46:F6:9A:5D:B4:DC:29:41:3F:62:D3:0A:73:25:67:C2 _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to