Re: [lftp-devel] [lftp] Compressing data at destination machine

2014-11-27 Thread akshay gupta
I dont want lftp to extract data from archives, I want it to compress it
into archive so that it occupies less space at the destination side. Is
this feasible to do in lftp?

On Wed, Nov 26, 2014 at 11:33 AM, Alexander V. Lukyanov l...@netis.ru
wrote:

 On Tue, Nov 25, 2014 at 06:44:32PM +0530, akshay gupta wrote:
  I want to store the data that is being pulled by lftp mirror job in a
  compressed format. Is it possible that mirror function can check file
  download status from inside of that tar, zip etc. Is it possible to
  implement such a functionality in lftp?

 I don't think mirror will be able to extract compressed archives, but
 you can download the archive and extract it at the same time, like this:

 lftp cat file.tar.gz | tar xv

 --
Alexander.

___
lftp-devel mailing list
lftp-devel@uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp-devel


Re: [lftp-devel] [lftp] Compressing data at destination machine

2014-11-27 Thread Alexander V. Lukyanov
On Fri, Nov 28, 2014 at 11:55:07AM +0530, akshay gupta wrote:
 I dont want lftp to extract data from archives, I want it to compress it
 into archive so that it occupies less space at the destination side. Is
 this feasible to do in lftp?

Take a look at zipfs: https://github.com/hanwen/go-fuse

Unfortunately it is read-only.

So you can mount a zip file, run mirror over it with --script option, run
the script with an empty target directory, then run zip to update the
archive.

-- 
   Alexander.
___
lftp-devel mailing list
lftp-devel@uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp-devel