Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Backup directory in USS (OMVS)

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IBM Tools
View previous topic :: :: View next topic  
Author Message
autobox

New User


Joined: 19 Aug 2005
Posts: 48

PostPosted: Tue Jan 12, 2016 8:51 am    Post subject: Backup directory in USS (OMVS)
Reply with quote

Hi all,

I tried to backup USS (OMVS) files using tar command but failed to restore.

1. tar -zxvf to pack a directory to a tar.Z file
2. FTP to get tar.Z file from USS to PC in binary
3. FTP to put tar.Z file from PC to another z/OS USS in binary
4. uncompress tar.Z to tar
5. tar -xvf tar got below error:
tar: FSUM8842 codeset translation initialization: EDC5121I Invalid argument.

Anything wrong in my process? Or there is other way better to do the same thing?

Thanks in advance!
Back to top
View user's profile Send private message

SPACHFR

New User


Joined: 07 Mar 2006
Posts: 5
Location: France

PostPosted: Wed Jan 20, 2016 8:19 pm    Post subject: Reply to: Backup directory in USS (OMVS)
Reply with quote

You should look this link :

www-01.ibm.com/support/docview.wss?crawler=1&uid=isg1OA48941
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7913
Location: Bellevue, IA

PostPosted: Wed Jan 20, 2016 8:28 pm    Post subject:
Reply with quote

I don't think you're specifying the options correctly. From the Unix System Services Command Reference manual:
Quote:
The four forms of the command shown in the syntax represent the main functions of tar as follows:

c
Creates an archive. Each named file is written into a newly created archive. Directories recursively include all components. Under the USTAR (U) option, tar records directories and other special files in the tape archive; otherwise, it ignores such files. If appears in place of any file name, tar reads the standard input for a list of files one per line. This allows other commands to generate lists of files for tar to archive.

Tip: In order to preserve information about extended attributes and external links, the USTAR format (-U) must be used. Additionally, to preserve ACLs, file tag information, and link names greater than 100 characters, the USTAR format (-U) and -X option must be used. The OS390 archive format can also be used with the -S option to store all the file attributes.
r
Writes the named files to the end of the archive. It is possible to have more than one copy of a file in a tape archive using this method. To use this form of the command with a tape, it must be possible to backspace the tape. Do not specify OS390 format to be appended to non-OS390 format archive or specify non-OS390 format to be appended to OS390 format archive.

Restriction: You cannot specify both the r and the z option at the same time.
t
Displays a table of contents. This option displays the names of all the files in the archive, one per line. If you specify one or more files on the command line, tar prints only those file names. The verbose (-v) option can be used to show the attributes of each component. For USTAR or OS390 format archives, the -L E option can be used to show the attributes and extended attributes of each component.
x
Extracts files from an archive. tar extracts each named file to a file of the same name. If you did not specify any files on the command line, all files in the archive are extracted. This extraction restores all file system attributes as controlled by other options.
I think the first tar should be -c not -x.
Back to top
View user's profile Send private message
autobox

New User


Joined: 19 Aug 2005
Posts: 48

PostPosted: Tue Apr 26, 2016 9:40 am    Post subject:
Reply with quote

Hi SPACHFR, you are correct about the root cause and the fix.

Hi Robert, you are correct about the tar option.

Thanks again!
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IBM Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IMS Database backup info ashek15 IMS DB/DC 14 Wed Nov 16, 2016 5:29 am
No new posts Need help on FDRABR incremental backu... sanpedro All Other Mainframe Topics 6 Wed Apr 06, 2016 3:24 am
No new posts Error executing command TSO OMVS - Cr... sirbaros TSO/ISPF 5 Mon Oct 26, 2015 8:26 pm
No new posts Database backup on IMS DB HABBIE IMS DB/DC 1 Wed Aug 12, 2015 9:02 pm
No new posts Execution of REXX-DB2 in OMVS Reny S All Other Mainframe Topics 0 Thu Feb 26, 2015 2:42 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us