diff options
author | Richard Jones <rjones@redhat.com> | 2009-04-20 15:54:22 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2009-04-20 15:54:22 +0100 |
commit | 0232e722826cfda0f6042da983f9eb871f24e946 (patch) | |
tree | e08a414ae15cc70f60ed6275231f9ae050a033fe /perl/lib/Sys/Guestfs.pm | |
parent | 11350529fee2dbbcfda333bbe10d72f023dc2109 (diff) | |
download | libguestfs-0232e722826cfda0f6042da983f9eb871f24e946.tar.gz libguestfs-0232e722826cfda0f6042da983f9eb871f24e946.tar.xz libguestfs-0232e722826cfda0f6042da983f9eb871f24e946.zip |
Added tar-in, tar-out, tgz-in, tgz-out commands.
Diffstat (limited to 'perl/lib/Sys/Guestfs.pm')
-rw-r--r-- | perl/lib/Sys/Guestfs.pm | 28 |
1 files changed, 28 insertions, 0 deletions
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<tarfile> (an +I<uncompressed> tar file) into C<directory>. + +To upload a compressed tarball, use C<$h-E<gt>tgz_in>. + +=item $h->tar_out ($directory, $tarfile); + +This command packs the contents of C<directory> and downloads +it to local file C<tarfile>. + +To download a compressed tarball, use C<$h-E<gt>tgz_out>. + +=item $h->tgz_in ($tarball, $directory); + +This command uploads and unpacks local file C<tarball> (a +I<gzip compressed> tar file) into C<directory>. + +To upload an uncompressed tarball, use C<$h-E<gt>tar_in>. + +=item $h->tgz_out ($directory, $tarball); + +This command packs the contents of C<directory> and downloads +it to local file C<tarball>. + +To download an uncompressed tarball, use C<$h-E<gt>tar_out>. + =item $h->touch ($path); Touch acts like the L<touch(1)> command. It can be used to |