tar_in


Description:

[ Version ( since = "1.0.3" ) ]
public bool tar_in (string tarfile, string directory, TarIn? optargs, Cancellable? cancellable = null) throws Error

unpack tarfile to directory

This command uploads and unpacks local file tarfile into directory.

The optional compress flag controls compression. If not given, then the input should be an uncompressed tar file. Otherwise one of the following strings may be given to select the compression type of the input file: compress, gzip, bzip2 , xz, lzop. (Note that not all builds of libguestfs will support all of these compression types).

The other optional arguments are:

xattrs If set to true, extended attributes are restored from the tar file.

selinux If set to true, SELinux contexts are restored from the tar file.

acls If set to true, POSIX ACLs are restored from the tar file.

Parameters:

this

A GuestfsSession object

optargs

a GuestfsTarIn containing optional arguments

cancellable

A GCancellable object

Returns:

true on success, false on error