[Wylug-help] Scriptable FTP, creating remote archives

James Holden wylug at jamesholden.net
Fri Dec 2 11:25:20 UTC 2011


All,

I've just moved a DB-based app of mine to a new dedicated server and I
got 100GB of FTP backup space as part of the deal.

The backup plan is to:

1) Flush and lock the DB tables
2) Create an LVM snapshot (instantaneously)
3) Unlock the DB, allowing the app to continue running
4) Create an FTP archive of the current state

For a variety of reasons, it'd be preferable to create an tar archive on
the remote box, but I can't figure out how to do it non-interactively.

The ancient command line FTP client can do it as follows:

> put |"tar czf - somedir" archive.tgz

...but my usual choice for scriped FTP, lftp, doesn't understand this.

Anyone got any ideas?

Cheers,

James

-- 
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/9e652f56/attachment.pgp>


More information about the Wylug-help mailing list