Create a TAR file in XI?

Hi All,
One of our client requirement is to create a tar file as the output.
The payloadzipbean creates a zip file. Is there any standard way to create a tar file?
If there isnt, is there an alternative?
Regards,
Shabarish

Sãnthosh Kûmãr  V wrote:
> Hi Shabz,
>
> I guess it is feasabel to write a script that will both convert the file to tar file and do a FTP transfer to the target system. You may execute this script every time a file is created thru the receiver channel.
> By this way you can avoid having an additional scenario to transfer the TAR file.
>
> Thanks
> SaNv...
Hi Santhosh,
In this particular case, to have the same script do the FTP is not a good idea because;
a. It is FTPS
b. The password for the target keeps changing every month - means modifying the script in PRD
c. To monitor for the FTP of the files via the script is a pain point. The support team will require to now check in a different location for this, losing out on the central monitoring concept of XI
Thanks for you input still, appreciate it !!!
Regards,
Shabz

Similar Messages

  • Error ,opening a  tar file created by TarOutputStream

    Iam trying to create a tar file using TarOutputStream with the code below :
    try {
    TarOutputStream tout = new TarOutputStream(out);
    for (int i = 0; i < files.length; i++) {
    if (files.getPath() == null) {
    continue;
    File f = new File(wsdir, files[i].getPath());
    if (!f.exists()) {
    continue;
    TarEntry te = new TarEntry(files[i].getPath());
    size += f.length();
    te.setSize(size);
    tout.putNextEntry(te);
    try {
         FileInputStream in = null;
         try {
              in = new FileInputStream(f);
              byte buf[] = new byte[1024];
              int n;
              while ((n = in.read(buf)) > 0) {
              tout.write(buf, 0, n);
         } finally {
              if (in != null) {
              in.close();
         } catch (IOException e) {
         e.printStackTrace();
    tout.close();
    } catch (IOException e) {
    e.printStackTrace();
    return false;
    The above code succcessfully creates the tar file but while opening the tar file Iam getting the error - Error reading header after processing 1 enries

    I created a zip file by providing the relative paths
    of the files using the java.util.zip package.I
    downloaded it through a web application.It was
    downloaded successfully and the zip file is showing
    100 kb.When i tried opening zip file from windowsXP
    SP2 and i am not able to view or extract the
    contents.It says 'Windows has blocked access to these
    files to help protect your computer'. Go and complain to Microsoft. It's a Windows XP SP2 security feature. Read the manual or help about how to deal with it. It's not a Java problem.

  • Recovery from tar file

    Hi,We ate creating a tar file every nigth with all the essbase apps, all directories etc. Then we are ftping the tar file from production failover machine. Then I am doing tar -xvf file name.All driectories are getting created etc. When I goto app manager I am not seeing the apps.Please Advise.Thanks,Minash...

    Have you created the apps/databases in Essbase yet? In addition to copying the files over, you still need to create the apps/databases.

  • LMS 3.2 - Backup-Error -- ERROR(908): Cannot create or back up tar file

    Hello again,
    with performing backup (LMS 3.2 on Solaris 9) the following errors will arise.
    dbbackup.log
    /opt/CSCOpx/bin/tar: Removing leading `/' from absolute path names in the archive Apps file : /opt/CSCOpx/backup/manifest/upm/upminfo/datafiles.txt
    [Tue Dec  8 08:56:54 2009] Archiving the contents of the following directories into /enbw/backup/files/cw_db_backup/0/upm/filebackup.tar
    [Tue Dec  8 08:56:54 2009] /opt/CSCOpx/hum/conf/upm-snmp.properties
    /opt/CSCOpx/hum/thresholdscript /opt/CSCOpx/MDC/tomcat/webapps/upm/reports
    /opt/CSCOpx/MDC/tomcat/webapps/upm/WEB-INF/classes/com/cisco/nm/upm/properti
    es/common/UPM.properties
    /opt/CSCOpx/bin/tar: Removing leading `/' from absolute path names in the archive
    /opt/CSCOpx/bin/tar: Cannot add file
    /opt/CSCOpx/MDC/tomcat/webapps/upm/reports/virt32841308_657_658_-718594975:
    No such file or directory
    /opt/CSCOpx/bin/tar: Cannot add file
    /opt/CSCOpx/MDC/tomcat/webapps/upm/reports/virt32841308_658_659_1465769167:
    No such file or directory
    /opt/CSCOpx/bin/tar: Error exit delayed from previous errors [Tue Dec  8 09:07:30 2009]  ERROR(908): Cannot create or back up tar file. Backup cancelled. Verify that you have write-access to this directory. [Tue Dec  8 09:07:30 2009]  Backup failed: 2009/12/08 09:07:40 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    Is seems to be problem related to maximal filesize handling of GNUtar implemented in CW2000.
    The problem is with tar'ing HUM-Reports in /opt/CSCOpx/MDC/tomcat/webapps/upm/reports, and with reaching
    tarfile-size of 2,9GByte error is thrown.
    </exxx/backup/files/cw_db_backup/0/upm># ls -lh
    total 6126448
    -rw-r-----   1 casuser  casusers    2.9G Dec  8 09:07 filebackup.tar
    </exxx/backup/files/cw_db_backup/0/upm># ls -al
    total 6126452
    drwxr-x---   2 casuser  casusers     512 Dec  7 14:30 .
    drwxr-x---  11 casuser  casusers     512 Dec  7 14:30 ..
    -rw-r-----   1 casuser  casusers 3135201280 Dec  8 09:07 filebackup.tar
    GNUtar-Version
    # /opt/CSCOpx/bin/tar --version
    tar (GNU tar) 1.13
    Copyright (C) 1988, 92,93,94,95,96,97,98, 1999 Free Software Foundation, Inc. This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    Written by John Gilmore and Jay Fenlason.
    Is this a know problem?
    Thanks for any thoughts.
    Best Regards
    Lothar

    Hi Joe,
    thanks for your feedback.
    These files to be tarred aren't there directly after backup stops with error.
    It seems that some process stores data about reports in that file and when trying to
    pack these reports via tar they are delete by any cleanup method.
    Does this help.
    P.S. Backup usually takes about more than 1hour

  • LMS Backup - Cannot create or back up tar file

    Hello,
    We have LMS 3.2 installed and the backup is failing with the following message
    "Cannot create or back up tar file. Backup cancelled. Verify that you have write-access to this directory."
    I have removed Cygwin and also the set the backup to offline yet the same result. Please assist on this issue.
    Thanks.

    Hi Dedra,
    I will not give you as much help as Joseph, but will provide you an idea for possible problem explanation.
    Just following your sentence:
    I removed all traces of mentioned line but still the same problem.  Backup failed with the following message. I have noticed that all these  backup fail after writing 4GB of data into the backup directory.
    Are you sure you don't generate any file bigger than 4GB on a FAT32 file system support, which cannot be possible (external USB storage) ?
    It could be the reason for such a error message returned from your tar.exe process....
    D:/CiscoWorks_Backup/0/upm/filebackup.tarC:\PROGRA~1\CSCOpx\bin\tar.exe:  Write error: No space left on device would be the error message returned code from this situation oversizing file maximum size.
    Any simple solution would be to format your USB storage to NTFS or change backup destination to NTFS partition somewhere else for test and eliminate this supposition.
    regard,
    andré

  • How do I create an FSDIAG file on Linux systems?

    QuestionHow do I create an FSDIAG file on Linux systems?
    AnswerTo create an FSDIAG file for the Linux Security product:
    Go to a working directory to which the fsdiag.tar.gz file will be created.
    Run the following command:
    # /opt/f-secure/fsav/bin/fsdiag
    Note: Any existing FSDIAG file will be overwritten.
    You will find the fsdiag.tar.gz file on the current working directory. Attach this file to your support request.
    To create an FSDIAG file for the Internet Gatekeeper (IGK) product:
    Create the diagnostic information file (diag.tar.gz) in the product install directory by running the following command:
    - IGK (Japanese 4.x): # cd /home/virusgw; make diag
    - IGK (English 4.x or English/Japanese 5.x): # cd /opt/f-secure/fsigk; make diag
    Note: Any existing FSDIAG file will be overwritten.
    Attach this file to your support request.
    Note that you can also create the diagnostic file by using the Web UI.

    An .srt is simply a plain text file with sequence numbers, time markers, and captions. You can use any text editor to make one. Follow the pattern:
    1
    00:00:00,500 --> 00:00:04,500
    So it was with my formal education
    as well.
    2
    00:00:04,600 --> 00:00:08,250
    Each weekday, while my father worked
    on his Sunday sermon...
    3
    00:00:08,300 --> 00:00:10,000
    I attended the school
    of the Reverend Maclean.
    The first number (e.g., 00:00:00,500) in each pair indicates when the caption starts. The second number (e.g., 00:00:04,500) in each pair indicates when the caption stops.
    If you're going to be captioning many videos, consider an application that merges a text editor and video preview window. Jubler (http://www.jubler.org/) is one.

  • Can't create archive from file menu

    Hello,
    I can't create 'archive' (tar.gz) from file menu in Color (Save Archive As...).
    I don't have authorization problem on my folder project; i can create myself a tar.gz archive in the folder Archive of my Color's project.
    The system.log file said:
    Jul 16 09:45:51 fcp1 [0x0-0x1e01e].com.apple.color[215]: tar: Cowardly refusing to create an empty archive
    Jul 16 09:45:51 fcp1 [0x0-0x1e01e].com.apple.color[215]: Try `tar --help' or `tar --usage' for more information.

    some other users report difficulties, crashes, freeze-ups and very long save times associated with the Operating System and Finder. There is apparently some background file compression utility that may be interfering with your save routine. There are a couple of threads related to this issue on this forum, so a bit of searching may yield a solution.
    I haven't encountered it in nearly four years of day-to-day with three separate systems in either Tiger or Leopard. Suffice to say that if you have any third-party whiz-bang utilities running, COLOR is very vulnerable to OS corruption as it is a stripped-out race car that doesn't expect or tolerate much else when it comes to sharing the computer.
    jPo

  • Having a hard time with permissions to create dir and files in www

    Having a hard time getting permissions to create directories and files in www folder:
    I followed the following guide here: https://www.digitalocean.com/community/ … arch-linux and here: https://www.digitalocean.com/community/ … arch-linux
    So now I have a LEMP stack which runs fine and I have my root account secured and a new username "adriano". If I SFTP into the server using the username adriano, I am unable to create any files or directories. Trying to do a simple wordpress install doesn't work because I need to be able to create a folder for it, and a wp-config.php file. Both of which, like I mentioned, I do not have permissions to do. Yes, the username "adriano" has been added to the sudoers file via visudo.
    I've never been very good at UNIX permissions so I was wondering if maybe someone can help me out?
    Also, since I am using nginx it does not seem like I have a www-data group or user and my www folder is /usr/share/nginx/
    Thank you,
    AJ

    No, no, you guys misunderstand me. I am not that much of an oblivious person. 95% of the time I understand EXACTLY what the code that I am copying and pasting does. And when I don't, I look into it further before executing said commands. I just tend to not remember commands so I google them, see examples, and then copy and paste them to avoid the busy work of typing out long strings. For example, it took me like 6 months to remember that to untar a .tar.gz file it was -xvfz.
    But I digress. drcouzelis, I do have root access. It's my own VPS. However, I have always used shared hosting through different hosting providers and now that I got a VPS and have to do everything myself, I am a little bit lost.
    I followed what wonderwoofy said and created a www-data group, added the adriano user to said group, and changed the owner of my http server root to www-data, and I SFTPed into the server again with filezilla and it still works perfectly. However, those "hordes of hackers" drcouzelis warned me about does not sound pleasant so I am really really really hoping one of you guys can tell me the next steps. Root login is disabled in the /etc/ssh/sshd_config file, and I also changed the port to a random port I created. My web files are all served from /usr/share/nginx/ (there are different folders in there that correspond to different domains.) Now what I am wondering is that if user "adriano" is in the sudoers file as ALL=(ALL) ALL, doesn't that pretty make adriano the same as the root user? The reason why I am so worried about this is because I heard/read countless times that working through the root user is BADDDDDDDDDD and will bring evil and shame upon your life (not in those exact words) and that you should never work with it. Also, do I have to worry about anything dealing with groups and/or users and/or permissions when it comes to PHP? I have php-fpm installed.
    I am willing to buy anyone who can help me out with this a beer or two and I will be forever in your debt.
    Thank you,
    AJ
    Last edited by AJCR (2013-05-23 02:52:03)

  • Tar extract file in particular directory excluding path stored in tar file

    In winzip you have chk box 'Use Foldername', if you uncheck it, all files will be extracted to path given in Extract to:
    Like winzip, do you have facility to extract files from tar file to a particular directory ignoring path stored in tar file.
    os - linux,unix
    regds

    Using -C <new_directory> options creates
    subdirectories under the new_directory as per path
    stored in tar file
    I just want to extract the files in the -C directory.
    e.g.
    # tar -tvf archive.tar
    -rw-r----- oracle/oinstall 4669440 2006-11-30
    13:23:02 /app/fmb/FORM1.fmb
    -rw-r----- oracle/oinstall 200704 2006-11-29
    10:18:25 /app/fmb/FORM2.fmb
    when i give following command
    tar -xvf archive.tar -C TargetDir
    creats subdirectory app/fmb in this TargetDir and
    then extract the files Forms1.fmb
    TargetDir/app/fmb/FORM1.fmb
    TargetDir/app/fmb/FORM2.fmb.
    where as i want FORM1.fmb and FORM2.fmb in TargetDir
    TargetDir/FORM1.fmb
    TargetDir/FORM2.fmb
    regdsit's include directory information when you run tar cvf.
    you can do the following action
    1. cd /app/fmb/
    2. tar cvf archive.tar *
    3. tar -xvf archive.tar -C TargetDir

  • BE5k to BE6k Migration tar file fails

    Hi we are upgrading from a CUCMBE5k to 6k (CUCM 9.1.2)
    Our existing server is on an HP MSC server and we purchased the Cisco UCS C220 server. We are following the below guide which outlines creating the server then import/export the tar files from the old server into the new CUCM. Because this is on a new server I'm bring the new one up in parallel then i will cut over.
    When I run the import it fails. Attached is the job schedular failier. The log files have some info however, how much do I need to manipulate this info, if I can. Has anyone run into this issue with the TAR files failing?
    Thanks,
    Mike

    There is no migration path for CUCM off of a BE5k. You must build the new CUCM cluster from scratch. If you're patient, you can use BAT Import/Export to carry over most of the data; however, it'll require a lot of massaging in Excel as the columns will be different between the export from your older version and the import on 9.1(2). Note that you can carry CXN mailboxes over using COBRAS but you must be on CXN 7.x or newer.
    If you have installed Cisco Unified Communications Manager Business Edition 5000 on an MCS-7828 server, and you decide that you need to migrate to separate Cisco Unified Communications Manager and Cisco Unity Connection environments for increased scalability and capacity, you can reuse that MCS-7828 server to run Cisco Unified Communications Manager in a MCS-7825 cluster. Although you can reuse the server, you must reenter your data on the server manually. You must also obtain another server to run Cisco Unity Connection.
    http://www.cisco.com/en/US/docs/voice_ip_comm/cucmbe/install/8_6_1/install/cmins861.html#wp795012
    Please remember to rate helpful responses and identify helpful or correct answers.

  • Making .tar.gz from .tar file in linux

    i had a doubt as to how to create a .tar.gz file from a .tar file in linux as i wanted to take the back-up of the export of Oracle. Please, help in solving the doubt.
    regards

    It's the gzip command:
    http://linux.about.com/od/commands/l/blcmdl1_gzip.htm
    Also note that Oracle Database 10g provides the new UTL_COMPRESS
    package to compress and uncompress data, with the compressed output compatible with the output of the familiar GZIP and GUNZIP compression utilities.
    Hope this helps. . .
    Donald K. Burleson
    Oracle Press author
    Author of "Oracle Tuning: The Definitive Reference":
    http://www.dba-oracle.com/bp/s_oracle_tuning_book.htm

  • Extracting .tar files

    I have the com.ice.tar package from http://www.trustice.com/java/tar/ and I have the code shown below compiling just fine. However, I need to extract .tar files and this code will only extract tar.gz files. Does anyone know what I need to change to my code to get it to extract .tar files? Thanks,
    import com.ice.tar.*;
    import javax.activation.*;
    import java.io.*;
    import java.util.zip.GZIPInputStream;
    public class untarFiles
    public static void main(String args[]) {
    try {
    untar("c:/Files/AnyFile.tar.gz",new File("c:/Files/"));
    catch(Exception e) {
    e.printStackTrace();
    System.out.println(e.getMessage());
    private static void untar(String tarFileName, File dest) throws IOException {
    //assuming the file you pass in is not a dir
    dest.mkdir();
    //create tar input stream from a .tar.gz file
    TarInputStream tin = new TarInputStream( new GZIPInputStream
    ( new FileInputStream(new File(tarFileName))));
    //get the first entry in the archive
    TarEntry tarEntry = tin.getNextEntry();
    while (tarEntry != null){//create a file with the same name as the tarEntry
    File destPath = new File(dest.toString() + File.separatorChar + tarEntry.getName());
    if(tarEntry.isDirectory()){
    destPath.mkdir();
    } else {
    FileOutputStream fout = new FileOutputStream(destPath);
    tin.copyEntryContents(fout);
    fout.close();
    tarEntry = tin.getNextEntry();
    tin.close();
    }

    hey ppl, i have the same assignment of extracting tar.Z files using java.
    I have the same trustice.com library com.ice.tar
    I've used basically the same code given in the previous post.
    It is givin me the followin exception when i try using tar.Z files :
    com.ice.tar.InvalidHeaderException: bad header in block 0 record 0, header magic is not 'ustar' or unix-style zeros, it is '-50112-51-424592-71', or (dec) -50, 112, -51, -42, 45, 92, -71
         at com.ice.tar.TarInputStream.getNextEntry(Unknown Source)
         at filterdialog.readTar(filterdialog.java:101)
         at filterdialog$1.actionPerformed(filterdialog.java:80)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at javax.swing.JComponent.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)

  • Extracting file from a TAR file with java.util.zip.* classes

    Is there a way to extract files from a .TAR file using the java.util.zip.* classes?
    I tried in some ways but I get the following error:
    java.util.zip.ZipException: error in opening zip file
    at java.util.zip.ZipFile.<init>(ZipFile.java127)
    at java.util.zip.ZipFile.<init>(ZipFile.java92)
    Thank you
    Giuseppe

    download the tar.jar from the above link and use the sample program below
    import com.ice.tar.*;
    import java.util.zip.GZIPInputStream;
    import java.io.*;
    public class untarFiles
         public static void main(String args[]){
              try{
              untar("c:/split/20040826172459.tar.gz",new File("c:/split/"));
              }catch(Exception e){
                   e.printStackTrace();
                   System.out.println(e.getMessage());
         private static void untar(String tarFileName, File dest)throws IOException{
              //assuming the file you pass in is not a dir
              dest.mkdir();     
              //create tar input stream from a .tar.gz file
              TarInputStream tin = new TarInputStream( new GZIPInputStream( new FileInputStream(new File(tarFileName))));
              //get the first entry in the archive
              TarEntry tarEntry = tin.getNextEntry();
              while (tarEntry != null){//create a file with the same name as the tarEntry  
                   File destPath = new File(
                   dest.toString() + File.separatorChar + tarEntry.getName());
                   if(tarEntry.isDirectory()){   
                        destPath.mkdir();
                   }else {          
                        FileOutputStream fout = new FileOutputStream(destPath);
                        tin.copyEntryContents(fout);
                        fout.close();
                   tarEntry = tin.getNextEntry();
              tin.close();
    }

  • How create .ZIP, .RAR file on data export

    Dear All(s)
    On export in want to create .DMP and .RAR,ZIP files, How i can do this in Oracle 10.2.0.1
    EXP full=Y file=d:\abc.dmp
    Thanks in Advance

    For Linux, you can create shell script to export database and after that create .tar file from exported dump
    On Windows, you can create bat file to run export and then zip the dump file automatically
    On my blog, you can see an example of this procedure
    http://kamranagayev.wordpress.com/2009/02/23/using-oracle-utl_file-utl_smtp-packages-and-linux-shell-scripting-and-cron-utility-together-2/
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com

  • Easy Question:  Correct tar command to extract tar file

    If I have a tar file I wish to extract and let it automatically place the files where the belong what should I type in the Terminal, assuming I'm in the directory the tar file resides?

    tar xvf [tar filename]
    If the tar file was created with GNU tar, then it may be malformed (using a non-standard extension for long paths). In this case you will need to use gtar (/usr/sfw/bin/gtar).
    Paul

Maybe you are looking for

  • Looking for remote control App (iPhone) to use with iMovie

    I just got a Macbook Air, and my infrared Apple remote control doesn't work with it. I wanted to be able to do presentations (in this case using iMovie) and be able to have a remote so that I could pause, go back, fast forward, i.e. the usual things

  • Love my ovi maps. yaeeeeee

    i love how it works.3.04 is soo awesome.after 1 week of having the 3.04 wi fi locating doesnt work no more.no more big red ring showing about 1 mile off from your current location yaeeeeeeee.now it takes soooo long that i have to shut it off then bac

  • Serialized Material in Good Issue

    Dear all,      Let say i have a serialized Material in GI. Do i need to key in the serial number one by one or can i just key in the ranges and qty and it will auto populate all the serial numbers for me? Please advice, thank you

  • Forms 9i -  "Show Palette" on Image Item

    I can not get the palette which allows you to rotate, zoom etc. to display when I run the form. Is anybody else having a similar problem ?

  • Audition 2 no longer starts

    I'm not sure what happened, but audition no longer starts.  It might have been a windows update.  I do have some CS4 applications on this machine, so maybe they are interfering. I don't get a splash screen, I just see the hard drive light flicker a f