Sponsored Content
Operating Systems AIX recursive archive directories and subdirectories Post 302302872 by pludi on Wednesday 1st of April 2009 08:15:58 AM
Old 04-01-2009
Code:
# pwd
/tmp/wilson
# tar -cvf - study study1 | compress -c > study.tar.Z

or, if you want the complete path
Code:
# cd /
# tar -cvf - /tmp/wilson/study /tmp/wilson/study1 | compress -c > /tmp/wilson/study.tar.Z

This User Gave Thanks to pludi For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

grep recursive directories

I am trying to locate a file or files with specific data in them. Problem is the file(s) could reside in any one of many directories. My question is. Is there a way of recursively greping directories for the file(s) with the data I am looking for. I have tried - 1. $HOME> grep 47518 | ls... (8 Replies)
Discussion started by: jagannatha
8 Replies

2. UNIX for Dummies Questions & Answers

Permissions for Directories and Subdirectories

Is it possible to have a directory owned (by root) with permissions drwx------ and then have a sub directory of rwxrwxrwx. I know that this may be soo simple but I had no luck googling it. Thanks for your help (1 Reply)
Discussion started by: clancymf
1 Replies

3. Shell Programming and Scripting

Display only subdirectories from given directories

Hi Genius, I would like to display all the subdirectories only with timestamp. For exmple: Given Directory : orabkup /orabkup total 11365112 drwxr-xr-x 9 oracle oradba 256 Jan 03 16:01 db1 /orabkup/db1: total 0 drwxr-xr-x 2 oracle oradba 256 Jan 03 16:01... (8 Replies)
Discussion started by: HAA
8 Replies

4. UNIX for Dummies Questions & Answers

Compare/Diff between directories and subdirectories?

Hi, Does anybody know the cmd to compare two areas and print out the different files w/ path? I tried cmp and diff and dircmp but with no luck. Should I grep and print? For example: /aa/images/jan ..../images/feb /bb/images/jan ..../images/feb i want to print the compare,... (5 Replies)
Discussion started by: andylee80
5 Replies

5. Shell Programming and Scripting

Listing directories and subdirectories

How can list the directories and the subdirectories in a folder. It is possible with a single UNIX command. For example i have a folder named "archive" and another folder named "0808" and then multiple folders are there ... Can i list all the directories and subdirectories in the folder... (6 Replies)
Discussion started by: karansachdeva
6 Replies

6. Shell Programming and Scripting

backup of directories and subdirectories

Hello I'm new to the area Bash scripting and that is why I have a search script that is run on my unix server and always when I start the server or every 24 hours The script will create backups of directories and subdirectories I never found what I'm here make a new thread ... (1 Reply)
Discussion started by: HansWurst
1 Replies

7. UNIX for Dummies Questions & Answers

recursive copy into a directory and all its subdirectories...

I want to copy a file from the top directory into all the sub-folders and all of the sub-folders of those sub-folder etc. Does anyone have any idea how to do this? Thanks in advance of any help you can give. (3 Replies)
Discussion started by: EinsteinMcfly
3 Replies

8. UNIX for Dummies Questions & Answers

Find directories without subdirectories

Hello, I have to find all directories, which contain files, but dont have subdirectories. For example if i have tree like: ├── kat11 │ ├── kat21 │ │ └── Dokument\ bez\ nazwy │ └── kat22 │ ├── kat31 │ │ └── Dokument\ bez\ nazwy │ └── kat32 │ └──... (13 Replies)
Discussion started by: eValker
13 Replies

9. Shell Programming and Scripting

Script to Archive Files from Subdirectories

Hello, I have a CentOS server that contains a 'storage' directory. Within that directory, there could be any number of subfolders (all with unique names that match usernames). Under each username folder, there are two additional folders: db and files /STORAGE/user1/db/... (3 Replies)
Discussion started by: JasonH
3 Replies

10. Shell Programming and Scripting

Recursive (Into subdirectories) ffmpeg generate jpg from video

My question is how to modify my existing script to generate from videos (mp4,avi,mkv etc...) jpegs via ffmpeg and keep folder name of generated jpg file? So if i have video in /home/videos/MyParty2009/SOmeDirR/VideoSomeTitle.mp4 and it will generate jpg with name of MyParty2009.jpg so the... (2 Replies)
Discussion started by: ZerO13
2 Replies
mmsexplorer(1M) 					  System Administration Commands					   mmsexplorer(1M)

NAME
mmsexplorer - generate diagnostic report for Media Management System SYNOPSIS
mmsexplorer -u [report_name] [num_lines] DESCRIPTION
The mmsexplorer command creates a diagnostic report of the activities of the Media Managment System (MMS) server configuration and collects log information. It constructs the diagnostic report from the most recent entries in the MMS log file, MMS database, and MMS trace file. The MMS is a software interface, consisting of library managers and drive managers, that manages storage resources such as tape libraries, tape drives, media pools, tape volumes, and the disk resources that emulate tape drives and tape volumes. By default, mmsexplorer generates a compressed report. Use the -u option to generate an uncompressed file. To run mmsexplorer, you must become superuser, or assume the Primary Administrator role. OPTIONS
The following options are supported: -u Generates the diagnostic report file in an uncompressed format. report_name Specifies the name of the diagnostic report file. The default name and location is: /tmp/MMSreport.<hostname.YYYYMMDD.HHMMZ>.tar.gz num_lines Specifies the number of lines to capture from each file that contributes to the diagnostic report. The default is 1000 lines. EXAMPLES
Example 1 Creating Diagnostic Report Using Default Values The following command creates a diagnostic report using all default values. The MMS server is running on a host named x400. This name is reflected in the name of the diagnostic file. # mmsexplorer Report name: /tmp/MMSreport.x4200.20080530.1247CDT.tar.gz Lines per file: 1000 Output format: tar.gz (default) Use -u for unarchived/uncompressed. Please wait............................................. Please wait............................................. Please wait............................................. Please wait............................................. Please wait............................................. Please wait.. The following files should now be ftp'ed to your support provider as ftp type binary. /tmp/MMSreport.x4200.20080530.1247CDT.tar.gz Example 2 Creating an Uncompressed Diagnostic Report The following command creates an uncompressed diagnostic report. As in the previous example, the MMS server is running on a host named x400. # mmsexplorer Report name: /tmp/MMSreport.x4200.20080530.1252CDT Lines per file: 1000 Output format: unarchived/uncompressed Please wait............................................. Please wait............................................. Please wait............................................. Please wait............................................. Please wait............................................. Please wait.. The following files should now be ftp'ed to your support provider as ftp type binary. /tmp/MMSreport.x4200.20080530.1252CDT /tmp/MMSreport.x4200.20080530.1252CDT.database.gz /tmp/MMSreport.x4200.20080530.1252CDT.trace.tar.gz EXIT STATUS
0 Success. !=0 An error occurred. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWsmms | +-----------------------------+-----------------------------+ |Interface Stability |Volatile | +-----------------------------+-----------------------------+ SEE ALSO
mmsadm(1M), mmsclient(1M), mmsinit(1M), attributes(5) NOTES
The diagnostic report generated by mmsexplorer can be sent to your Sun authorized service provider or to Sun's technical support, as speci- fied in your maintenance contract. SunOS 5.11 29 Jul 2008 mmsexplorer(1M)
All times are GMT -4. The time now is 10:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy