11-04-2008
Copying files older then 2 days
Hi everyone
I have a little question here, at my work, we have a system running Solaris 10 - with an attached EMC SAN, the SAN is running out of space, and we are moveing the data to a new EVA SAN.
The problem here is, that there are over 35.000.000 files on the system, and constantly 30 developers on the system.
I am going to mount the new SAN in Solaris - and copy all files from the old SAN, that haven't been changed for the last 2 days.
Then afterwards, lockout all the users and copy the last hunk of files.
Is it possible to do this ?
I've read somewhere that it is not recommended to use dd when working with SAN.
Hope you can help me with a solution
/Skovsen.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
can anyone tell me how I would write a script in ksh on AIX that will delete files in a directory older than 7 days? (1 Reply)
Discussion started by: lesstjm
1 Replies
2. UNIX for Dummies Questions & Answers
Script help, I need to delete files that are older than 7 days. I do that automatically but I know that a cron job can do the job for me. Any help is greatly appreciated, as you can see, I am a DOS or WINDOWS guy. Little on UNIX. Thanks (3 Replies)
Discussion started by: texasoeb
3 Replies
3. Shell Programming and Scripting
Hi Guys,
I want to delete folder/files older than 7 days. Im using the command below.
find /test/test1 -mtime +7 -print0 | xargs -0 rm -Rf /test/test1/*
which works ok, but it deletes the test1 folder as well which i dont want. The test1 folder will have a list of sub-folders which in... (4 Replies)
Discussion started by: shezam
4 Replies
4. UNIX for Dummies Questions & Answers
This is driving me crazy. How can I delete files in a specifc directory that are over 30 days old? Thanks in advance. (3 Replies)
Discussion started by: tlphillips
3 Replies
5. Shell Programming and Scripting
Hi Guys,
I am new to unix
I am looking for a script to delete files older than 7 days but i also want to exclude certain directories (like arch,log .....) and also some files with extensions
( like .ksh, .ch, ..............)
Thanks (1 Reply)
Discussion started by: MAYAMAYA0451
1 Replies
6. UNIX for Advanced & Expert Users
Hi,
on AIX 6.1,
is there any commande line to remove the files older than n days in a directory ?
Thanks. (2 Replies)
Discussion started by: big123456
2 Replies
7. UNIX for Dummies Questions & Answers
Hi All,
OS :- HP-UX wm5qa B.11.23 U ia64 1119805695 unlimited-user license
I need to search files older than 50 days. I've used following command in order to search desired files, I also discoverd, it's showing today's files as well. Do you have any clue with this ?
wmqa1> find .... (4 Replies)
Discussion started by: alok.behria
4 Replies
8. Shell Programming and Scripting
Hi All,
I am using below code to delete files older than 2 days. In case if there are no files, I should log an error saying no files to delete.
Please let me know, How I can achive this.
find /path/*.xml -mtime +2
Thanks and Regards
Nagaraja. (3 Replies)
Discussion started by: Nagaraja Akkiva
3 Replies
9. UNIX for Dummies Questions & Answers
Hi
I want to find the total space used by the files which are older than x days
find ./ -type f -mtime +x-days -name "G00*" -exec du {} \; | awk '{total+=$1}END{print "TOTAL" total}'
Total prints as 17.20 MB ( total / 1024*2 )
But actual size of it will be around 18.5 GB... (1 Reply)
Discussion started by: rakeshkumar
1 Replies
10. Shell Programming and Scripting
Hi,
Could someone help me that what the problem is in this code?
#!/bin/sh
FOLDER=/abc/datasource/checkstatus
TIMESTAMP=$(date +%s)
for filename in $(find $FOLDER -maxdepth 1 -type f -name "CHECK_STATUS*"); do
f1=$($filename -Eo "{4}+")
f2=$(date -d "$f1" +%s)
if... (11 Replies)
Discussion started by: Home
11 Replies
LEARN ABOUT CENTOS
gnutls_x509_crt_get_subject_alt_name
gnutls_x509_crt_get_subject_alt_name(3) gnutls gnutls_x509_crt_get_subject_alt_name(3)
NAME
gnutls_x509_crt_get_subject_alt_name - API function
SYNOPSIS
#include <gnutls/x509.h>
int gnutls_x509_crt_get_subject_alt_name(gnutls_x509_crt_t cert, unsigned int seq, void * san, size_t * san_size, unsigned int * critical);
ARGUMENTS
gnutls_x509_crt_t cert
should contain a gnutls_x509_crt_t structure
unsigned int seq
specifies the sequence number of the alt name (0 for the first one, 1 for the second etc.)
void * san is the place where the alternative name will be copied to
size_t * san_size
holds the size of san.
unsigned int * critical
will be non-zero if the extension is marked as critical (may be null)
DESCRIPTION
This function retrieves the Alternative Name (2.5.29.17), contained in the given certificate in the X509v3 Certificate Extensions.
When the SAN type is otherName, it will extract the data in the otherName's value field, and GNUTLS_SAN_OTHERNAME is returned. You may use
gnutls_x509_crt_get_subject_alt_othername_oid() to get the corresponding OID and the "virtual" SAN types (e.g., GNUTLS_SAN_OTHERNAME_XMPP).
If an otherName OID is known, the data will be decoded. Otherwise the returned data will be DER encoded, and you will have to decode it
yourself. Currently, only the RFC 3920 id-on-xmppAddr SAN is recognized.
RETURNS
the alternative subject name type on success, one of the enumerated gnutls_x509_subject_alt_name_t. It will return GNUTLS_E_SHORT_MEM-
ORY_BUFFER if san_size is not large enough to hold the value. In that case san_size will be updated with the required size. If the cer-
tificate does not have an Alternative name with the specified sequence number then GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE is returned.
REPORTING BUGS
Report bugs to <bug-gnutls@gnu.org>.
General guidelines for reporting bugs: http://www.gnu.org/gethelp/
GnuTLS home page: http://www.gnu.org/software/gnutls/
COPYRIGHT
Copyright (C) 2012 Free Software Foundation, Inc..
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.
SEE ALSO
The full documentation for gnutls is maintained as a Texinfo manual. If the info and gnutls programs are properly installed at your site,
the command
info gnutls
should give you access to the complete manual. As an alternative you may obtain the manual from:
http://www.gnu.org/software/gnutls/manual/
gnutls 3.1.15 gnutls_x509_crt_get_subject_alt_name(3)