Date: Thu, 10 Feb 2005 22:18:44 +0100 From: Erik Norgaard <norgaard@locolomo.org> To: Gregor Mosheh <stigmata_blackangel@yahoo.com> Cc: freebsd-questions@freebsd.org Subject: Re: Secure file transfers Message-ID: <420BCFB4.9010803@locolomo.org> In-Reply-To: <20050210203804.78804.qmail@web53802.mail.yahoo.com> References: <20050210203804.78804.qmail@web53802.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?420BCFB4.9010803>