04-09-2008
Query
Just a quick query does that work on the datestamp of the file and not the actual date format in the file name, I have created the copies of these files from one server to the other so the datestamp will be the same on all of them
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I have some files on a folder and i want to delete all the files that were created on July.
Thanks,
Kobi. (9 Replies)
Discussion started by: kobibn
9 Replies
2. Shell Programming and Scripting
Hi,
I need command to display files with full path and date of files where are generated at every 5hrs in a folder.
eg:
/u01/app/test/orjthsd_1_1 Sun May 10 19:03:26 2009
/u01/app/test/weoiusd_1_1 Sun May 10 21:00:26 2009
thanks
saha (3 Replies)
Discussion started by: saha
3 Replies
3. Shell Programming and Scripting
Not sure how I should approach this one.
I have server X and Server Y. X is a collector. All files are seperated by hour. Y is used strictly for analysis. I do not always need all files from X. Sometimes other people use Y for analysis and do not always know how to transfer the files from... (3 Replies)
Discussion started by: mrlayance
3 Replies
4. Linux
Hi,
I want to rename all the files (more than 100 files) in a fodler to another folder with date&time stamp.
foe eg,
file1.dat
file2.dat
file3.dat
..
to be renamed as
file1100629_16_30_15.txt (yy-mon-dd_hh_mi_ss)
file1100629_16_30_16.txt
..
so on (2 Replies)
Discussion started by: feroz
2 Replies
5. Shell Programming and Scripting
Everyday 15 files are written to a folder \app\where\thefiles\are\destined\CURRFOLDER
Task1:
I need to add date in YYYYMMDDHHMISS format to each of them.
Example:
File: ACCOUNT.txt
Should be updated as: ACCOUNT_20101005175059.txt
Task 2:
After I update the files, they need to be
... (2 Replies)
Discussion started by: Duminix
2 Replies
6. HP-UX
Hi,
I want to find the size of the files added to a folder after a certain date(say 1st of october), I know we can list the files which were created after a certain date , but is there anyway to find the total size of those files ? (3 Replies)
Discussion started by: alookachaloo
3 Replies
7. UNIX for Dummies Questions & Answers
Hi All,
<Re-posting in Correct group>
I'm trying to select all the files in a folder that starts with a particular name format and are created in a gven date range using 'ls' command...but i'm not successful....
Example : I'm trying to see all the text files in a folder who names start... (6 Replies)
Discussion started by: Satya C1
6 Replies
8. Shell Programming and Scripting
Hi,
I have a script doing backup to synology server, the script create new folder each day with the date as being folder name i.e. 2018-07-30. Just before creating the new folder I want the script to find the oldest folder from the list and delete it including its content.
for example... (3 Replies)
Discussion started by: humble_learner
3 Replies
9. UNIX for Beginners Questions & Answers
I am trying to work on a script where it is a *(star) delimited file has a multiple lines starts with RTG and 3rd column=TD8 I want to substring the date part and
I want to replace with currentdate minus 15 days. Here is an example. iam using AIX server
$ cat temp.txt
RTG*888*TD8*20180201~... (1 Reply)
Discussion started by: Shankar455
1 Replies
LEARN ABOUT REDHAT
amflush
AMFLUSH(8) System Manager's Manual AMFLUSH(8)
NAME
amflush - flush Amanda backup files from holding disk to tape
SYNOPSIS
amflush [ -f ] [ -D datestamp ]* config [ host [ disk ]* ]*
DESCRIPTION
Amflush writes Amanda backups from the holding disks to tape, and updates the Amanda info database and tape list accordingly. Backups may
stay in a holding disk when something is wrong with the tape at the time amdump is run. When this happens, the problem must be corrected
and amflush run by hand.
-D datestamp specify a datestamp expression you want to flush, see the "DATASTAMP EXPRESSION" section of amanda(8) for a description. -D
20001225-7 will flush all dump from 25 december 2000 to 27 december 2000.
You can specify many host/disk expressions, only disks that match an expression will be flushed. All disk are flushed if no expression are
given. see the "HOST & DISK EXPRESSION" section of amanda(8) for a description.
Amflush will look in the holding disks specified by the amanda.conf file in /etc/amanda/config for any non-empty Amanda work directories.
It then prompts you to select a directory or to process all of the directories. The work directories in the holding disks are named by the
date at the time amdump was run, e.g. 19910215.
Amflush normally detaches itself from the tty and runs as a background process. With the -f option, amflush stays in the foreground. This
is useful if amflush is run as part of another script that, for example, advances the tape after the flush is completed.
See the amanda(8) man page for more details about Amanda.
EXAMPLE
Amflush will search for holding areas associated with the PUCC configuration. After you select which holding area to flush, amflush writes
the data to tape, updates the databases and sends a mail report similar to amdump(8).
% amflush DailySet1
Scanning /amanda-hold...
20001113: found Amanda directory.
20001114: found Amanda directory.
Multiple Amanda directories, please pick one by letter:
A. 20001113
B. 20001114
Select directories to flush [A..B]: [ALL] all
Flushing dumps in 20001113, 20001114,
today: 20001117
to tape drive /dev/rmt/0mn.
Expecting tape DMP014 or a new tape. (The last dumps were to tape DMP013)
Are you sure you want to do this? yes
Running in background, you can log off now.
You'll get mail when amflush is finished.
AUTHOR
James da Silva <jds@cs.umd.edu>
University of Maryland, College Park
SEE ALSO
amanda(8), amdump(8)
AMFLUSH(8)