tar_out


Description:

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

pack directory into tarfile

This command packs the contents of directory and downloads it to local file tarfile.

The optional compress flag controls compression. If not given, then the output will be an uncompressed tar file. Otherwise one of the following strings may be given to select the compression type of the output 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:

excludes A list of wildcards. Files are excluded if they match any of the wildcards.

numericowner If set to true, the output tar file will contain UID/GID numbers instead of user/group names.

xattrs If set to true, extended attributes are saved in the output tar.

selinux If set to true, SELinux contexts are saved in the output tar.

acls If set to true, POSIX ACLs are saved in the output tar.

Parameters:

this

A GuestfsSession object

optargs

a GuestfsTarOut containing optional arguments

cancellable

A GCancellable object

Returns:

true on success, false on error