[Wylug-help] Scriptable FTP, creating remote archives

James Holden wylug at jamesholden.net
Fri Dec 2 14:00:59 UTC 2011


On Fri, 2011-12-02 at 12:26 +0000, John Hodrien wrote:
> On Fri, 2 Dec 2011, John Hodrien wrote:
> 
> tar cz /path/to/snapshot | lftp -c "put /dev/stdin -o backup.tar.gz" \
>                                  -u user,pass dumpserver.nixcraft.in
> 

Ah, this looks doable. I specifically didn't want the archive to hit the
local disk first because it'll be about 15GB.

I've heard something about 2GB limit with FTP. I suspect this will be
implementation specific, it sounds Windowsey.

I'll give this a go, cheers.

On Fri, 2011-12-02 at 13:05 +0000, Smylers wrote:
> Something along those lines was my first thought too, but when I
> discovered lftp doesn't treat a filename of - as meaning stdin I gave
> up (and reached for Perl instead).

Yes, me too.

James

> _______________________________________________
> Wylug-help mailing list
> Wylug-help at wylug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/wylug-help

-- 
James Holden                     Developer, SEO, Technology Consultant
http://jamesholden.net/                          Leeds, United Kingdom
http://twitter.com/jamesholden                            07989 702968
PGP key fingerprint: 32C9 A76F 3CFE A06C 1B00 5AAB 9877 4742 8358 863A
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://mailman.lug.org.uk/pipermail/wylug-help/attachments/20111202/aad327f5/attachment.pgp>


More information about the Wylug-help mailing list