Adding a path to the File Name Prefix dialog in the Render Settings will force Maya to write the sub directories specified:
You can write, for instance: subdir/renderPass1/myRen.
This will write files called myRen.####.ext into the directory path images/subdir/renderPass1/, as long as you are set up to render into the images directory.
Tar stands for “tape archive”, and it is a standard archiving method used with Unix systems. Instructions below are for archiving (optionally compressed) and unarchiving tar files from a UNIX shell or the Mac Terminal.
Lets say you want to back up all of your Users tar -cvf myTarFile.tar Users
that assumes you are at /
so the User folder will be part of the structure
or you can:
cd /Users tar -cvf myTarFile.tar *
and that would back up all the users too
or: tar -cvf myTarFile.tar wolf
would just back up a wolf folder
good so far?
the c flag is for “create” (the tar file)
v is to view all of the files being added
(that is optional)
f is for the name of the tar file being created
you can use a path there, so as to put it where you want it.
if you want to compress the tar file on the fly, add the z flag, and name the tar file so you know that it is compressed
such as: tar -czvf myTarFile.tar.gz wolf
or if you prefer bzip2: tar -cjvf myTarFile.tar.bz2 wolf
use j for bzip
the order of the flags does sometimes matter, you will notice that we are creating the tar file first (with the c flag) then compressing it with the z or j flag
Next – we have to learn how to extract a tar file
actually – lets just look at whats inside a tar file first tar -tvf myTarFile.tar
that will print the contents to the screen
tv is easy to remember – think of that you want to see the contents on your ‘tv”
to view a compressed file: tar -ztvf myTarFile.tar.gz
the z comes first, because it has to uncompress it before it can print the contents on your “tv”
same but for bzip2: tar -zjtvf myTarFile.tar.bz2
we just use a j instead of the z
note that if you want to search for a specific file you can use grep such as: tar -ztvf myTarFile.tar.gz | grep -i someFileName
the -i for grep tells it to ignore the case (capital/lower)
to extract the whole archive, it is the same as viewing, except we just add one flag to extract it tar -zxvf myTarFile.tar.gz
and instead of the t
that will print all of the files being extracted to the screen, if you want it to not print the files, omit the v flag: tar -xf myTarFile.tar.gz
oops except that is compressed, so we need the z tar -zxf myTarFile.tar.gz
if you want to extract an specific file, you just have to specify the file (and the path if any)
so to extract a file called porn.m4v from Documents you woud: tar -zxvf myTarFile.tar.gz Documents/porn.m4v
and that is pretty much all there is to it!