Sponsored Content
Top Forums Shell Programming and Scripting Archieve one weeks old txt files Post 302852629 by chakrapani on Thursday 12th of September 2013 02:57:49 AM
Old 09-12-2013
Check this : https://www.unix.com/tips-tutorials/2...ime-atime.html

find /TK/Project_ATT/Archive/*.txt -type -mtime +7 | xargs tar zcvf /somelocation/backup.tgz

First command find get you list of files
2nd command creates a tar and gzips them.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

alternative for Archieve

Hi all , In order to zip the file ... first we need to use TAR and then GZIP on the TAR file ..... Is there any other method for zipping the files directly as in windows ( winzip ) Regards, Dhananjay (3 Replies)
Discussion started by: dhananjayk
3 Replies

2. UNIX for Dummies Questions & Answers

echo "ABC" > file1.txt file2.txt file3.txt

Hi Guru's, I need to create 3 files with the contents "ABC" using single command. Iam using: echo "ABC" > file1.txt file2.txt file3.txt the above command is not working. pls help me... With Regards / Ganapati (4 Replies)
Discussion started by: ganapati
4 Replies

3. Solaris

list files .txt and .TXT in one command

Dear experts, In a directory i have both *.TXT and *.txt files. I have a script- for file in `ls *.txt`; do mv $file /tmp/$file How to list both *.txt and*.TXT file in one command so that script will move both .txt or .TXT whatever it find. br//purple (4 Replies)
Discussion started by: thepurple
4 Replies

4. Shell Programming and Scripting

Delete the files older than 3 weeks in a particular directory.

Hi, Friends, I am writing a script to delete all the files which are there for more than 3 weeks. I have tried this : find /home/appl/backup -type f -mtime +21 -exec rm -f {} \; But i am not sure if it deletes only the files in specified directory or all the directorinies in the provieded... (3 Replies)
Discussion started by: rajsharma
3 Replies

5. UNIX for Advanced & Expert Users

What is command to extract single file from an archieve?

I just want to extract one sigle file from an .ear archieve instead of extracting whole ear. Can anyone help me on this? (4 Replies)
Discussion started by: harshal_dcx
4 Replies

6. Emergency UNIX and Linux Support

How to delete all the files which are more than 3 weeks old in a particular directory.Thnx in advanc

(12 Replies)
Discussion started by: rajsharma
12 Replies

7. UNIX for Dummies Questions & Answers

archieve and zip the multiple file with no extension

Hi, I'm new to scripting. I need to find all the 10 files in the source directory and then archieve them to archive directory. The source files which im getting does not have any extensions just binary files. I need to find them by the file names and archive it. Directory also contains other... (1 Reply)
Discussion started by: etldeveloper
1 Replies

8. UNIX for Dummies Questions & Answers

Unix (compressed archieve, non-verbose)

I'm confusing with this question. :wall: Can any one tell me how to do and use which command? :confused: create a compressed archive of the "Test" directory and it's contents, called Test.tar.gz, and place it in the current directory. Use a non-verbose tar command with a single string, including... (5 Replies)
Discussion started by: wk9031
5 Replies

9. Shell Programming and Scripting

Move log files with date and delete older than 3 weeks

I have written a script which generate one logfile on every sunday and thursday I want to move the older log files into /tmp directory befor generating new one so i used mv command like mv usr/sbin/appl/logfile.txt usr/sbin/appl/tmp 2) But when i move this file to /tmp it will... (1 Reply)
Discussion started by: Nakul_sh
1 Replies

10. Shell Programming and Scripting

Compare two txt files,mismatches will be in new txt files

Hi, Below are the sample data for txt files. txt file 1 Partnumber|catgroup_id 10001082|46016 10001093|4680 10001093|386003 10001093|463004 10003251|683 10003251|63005 10003252|463005 10003252|4683 10003260|463005 10003260|4683 10003264|4683 10003264|463005 13420000|67... (5 Replies)
Discussion started by: Ankita Talukdar
5 Replies
ndmp(4) 							   File Formats 							   ndmp(4)

NAME
ndmp - configuration properties for Solaris Network Data Management Protocol (NDMP) server DESCRIPTION
The behavior of the Solaris NDMP server is specified by property values that are stored in the Service Management Facility, smf(5). An authorized user can use the ndmpadm(1M) command to set global values for these properties in SMF. You can set the following properties by using the ndmpadm set command: backup-quarantine Backup the files marked as quarantined by AV. Acceptable values are yes or no. The default is no. dar-support Set the Direct Access Recovery mode. Acceptable values are yes or no. The default is no. debug-level Set the debug level. The debug-level can be set to either 0 (off) or 1 (on). The default is 0. debug-path The path to which to save the debug log. The default is /var/ndmp. dump-pathnode Enable or disable backing up the directories containing modified files or directories in dump(1) backup format. Acceptable values are yes or no. The default is no. ignore-ctime Determines whether the change timestamp (ctime) of files and directories is used to determine whether a file should be backed up in level backup. If this parameter is set to yes, only the modification time (mtime) of the file or directory determines whether it should be backed up. Acceptable values are yes or no. The default value is no. overwrite-quarantine Restore quarantined files on top of current files if they already exist. Acceptable values are yes or no. The default value is no. restore-quarantine Restore the files that had been marked as quarantined by AV and are backed up. Acceptable values are yes or no. The default value is no. tar-pathnode Enable or disable backing up the directories containing modified files or directories in tar(1) backup format. Acceptable values are yes or no. The default value is no. token-maxseq Set the maximum sequence number for subsequent token-based incremental backup in NDMP-V4. The default value is 9. There are two limits for this value: soft-limit, which is 59, and hard-limit, equal to 64. If the token sequence number, passed by the DMA, is between the soft and hard limits, a warning message is issued to the DMA. The token sequence number can never exceed the hard-limit value. version Set the maximum active NDMP protocol version. Valid values are currently 2, 3, and 4. The default is 4. The following property can only be set when using the ndmpadm enable or ndmpadm disable command: auth-type Sets the password encryption type for the authentication of local users. Valid values are cram-md5 or cleartext. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWndmpu, SUNWndmpr | +-----------------------------+-----------------------------+ |Interface Stability |Committed | +-----------------------------+-----------------------------+ SEE ALSO
dump(1), tar(1), ndmpadm(1M), ndmpd(1M), attributes(5), smf(5) SunOS 5.11 3 Mar 2009 ndmp(4)
All times are GMT -4. The time now is 09:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy