I am looking for some advice. I have some files on a Unix server, which contain symbolic links. I need to copy these over to a nfts environment, but wish to keep the symbolic links intact. Any ideas? (7 Replies)
Hello Gurus,
I have a requirement where I have to remove users that have not logged into our unix box last 90 days. I want to script this one and remove the users automatically now and then. Has any one ever done this before, if so please give me some sample code. I am not a good unix... (2 Replies)
Hi,
I want to archive below directory
ex: /home/oracle/dd0
sub-directories in dd0
/home/oracle/dd0/backup/backup1
/home/oracle/dd0/backup/backup2
/home/oracle/dd0/dmp
....etc
I want a command(tar) which will let me archive the above directory excluding *.dmp(dump files), *.log(log... (1 Reply)
Hi friends
I work on UNIX Operating system and I have many servers.
ADM server make archiving for special data every day inside XYZ directory at specific time,the next time SPERADM server will take that archiving data to put them in same directory (inside SPERADM server).
Now archiving... (2 Replies)
Hi all. I am trying to set up archiving of directories, such that I keep every directory made in the past week, but just one directory per week beyond that. Using the find command, I can easily delete everything more than one week old, but can not figure out how to save one.
Each directory... (4 Replies)
Hi,
Suppose I have 2 files of yesterday's. And today I have received 3 files.
Before processing anything I want to archieve the 2 files of yesterday's into a different folder.
How can this be done?
Regards,
Sunitha (1 Reply)
Hi Guys
i am experiencing this problem when trying to archive a file in perl. the files name is created dynamically. (my $date = `date +"%d%m%Y"`;)
`tar czf /opt/memex/backups/Complete$date.tar.gz /opt/memex/backups/Complete$date`;
error message:
tar: Cowardly refusing to create an empty... (4 Replies)
Hi,
I am trying to develop a KSH script, to perform the following functions:
1. ZIP the previous day backup to ZIP Directory, while removing any ZIP file older than a week.
2. Perform the backup.
3. Send a confirmation mail with subject content of the size of file.
Please let me... (0 Replies)
Hi ,
Might be the very basic question and most frequent one also..
wanted to archive the logs/files older than one month or older than 30 days to some particular location.
File/log format is like below
ABCD_EF_GHIJ_Defaulter_Report_(06-Jun-2014_11-50-20_AM)
Source : /test/ABC... (3 Replies)
Discussion started by: Riverstone
3 Replies
LEARN ABOUT PLAN9
ar
AR(6) Games Manual AR(6)NAME
ar - archive (library) file format
SYNOPSIS
#include <ar.h>
DESCRIPTION
The archive command ar(1) is used to combine several files into one. Archives are used mainly as libraries to be searched by the loaders
2l(1) et al.
A file produced by ar has a magic string at the start, followed by the constituent files, each preceded by a file header. The magic number
and header layout as described in the include file are:
#define ARMAG "!<arch>
"
#define SARMAG 8
#define ARFMAG "`
"
struct ar_hdr {
char name[16];
char date[12];
char uid[6];
char gid[6];
char mode[8];
char size[10];
char fmag[2];
};
#define SAR_HDR 60
The name is a blank-padded string. The field contains to help verify the presence of a header. The other fields are left-adjusted, blank-
padded numbers. They are decimal except for which is octal. The date is the modification date of the file (see stat(2)) at the time of
its insertion into the archive. The mode is the low 9 bits of the file permission mode. The length of the header is Because the structure
is padded in an architecture-dependent manner, the structure should never be read or written as a unit; instead, each field should be read
or written independently.
Each file begins on an even (0 mod 2) boundary; a newline is inserted between files if necessary. Nevertheless size reflects the actual
size of the file exclusive of padding.
When all members of an archive are object files of the same architecture, ar automatically adds an extra file, named __.SYMDEF, as the
first member of the archive. This file contains an index used by the loaders to locate all externally defined text and data symbols in the
archive.
There is no provision for empty areas in an archive file.
SEE ALSO ar(1), 2l(1), nm(1), stat(2)BUGS
The uid and gid fields are unused in Plan 9. They provide compatibility with Unix ar format.
AR(6)