From 0232e722826cfda0f6042da983f9eb871f24e946 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Mon, 20 Apr 2009 15:54:22 +0100 Subject: Added tar-in, tar-out, tgz-in, tgz-out commands. --- perl/lib/Sys/Guestfs.pm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'perl/lib') diff --git a/perl/lib/Sys/Guestfs.pm b/perl/lib/Sys/Guestfs.pm index ad200881..d16077e5 100644 --- a/perl/lib/Sys/Guestfs.pm +++ b/perl/lib/Sys/Guestfs.pm @@ -780,6 +780,34 @@ underlying disk image. You should always call this if you have modified a disk image, before closing the handle. +=item $h->tar_in ($tarfile, $directory); + +This command uploads and unpacks local file C (an +I tar file) into C. + +To upload a compressed tarball, use C<$h-Etgz_in>. + +=item $h->tar_out ($directory, $tarfile); + +This command packs the contents of C and downloads +it to local file C. + +To download a compressed tarball, use C<$h-Etgz_out>. + +=item $h->tgz_in ($tarball, $directory); + +This command uploads and unpacks local file C (a +I tar file) into C. + +To upload an uncompressed tarball, use C<$h-Etar_in>. + +=item $h->tgz_out ($directory, $tarball); + +This command packs the contents of C and downloads +it to local file C. + +To download an uncompressed tarball, use C<$h-Etar_out>. + =item $h->touch ($path); Touch acts like the L command. It can be used to -- cgit