08-21-2006
followup
The script is only taring /interface/dashboard/users/aolukayo/filelist but not the contents(path) in fileset. Worse is, it removes all the files in the paths in the fileset file.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
I have a tar archive full of compressed .Z (compressed with the compress command) files. I have restored the tar to a disk but am looking for a way to uncompress every file in every sub-directory. Under normal circumstances, I would just change directories and "uncompress *" but with 1600... (3 Replies)
Discussion started by: Kun2112
3 Replies
2. Shell Programming and Scripting
Hi All,
Im trying to write a script to archive files based on the date the files were created.
For example, if a group of files were created on 23rd August,I would have 230806.tar. I have a problem,I want the script to read a separately created file(readarchive.txt) to look for the path to... (1 Reply)
Discussion started by: kayarsenal
1 Replies
3. Shell Programming and Scripting
Need some fine tuning advice:
I have a KSH programs croned to execute once a day. Which basically does the following simple operation:
for i in `ls`
do
cp $i $i.backup
>$i
gzip $i.backup
done
Basically cleanup the file after taking a backup.
Now the issue here is this directory... (5 Replies)
Discussion started by: firdousamir
5 Replies
4. Shell Programming and Scripting
Hi Friends,
I have an urgent requirement.
I have many files huge in size which has occupied almost the entire disk space. The files are not being moved to the archived folder.
But at present I need to purge those files, new to shell scripting, not sure how to proceed.
Eg.
Directory... (3 Replies)
Discussion started by: unx100
3 Replies
5. Shell Programming and Scripting
I have 15-20 files in a unix folder on daily basis, so i need to archive those 20 files as dated today and place that archived files in a new folder and has to remove those 20 files from that folder. so that i place 20 new files that comes for tomorrow.
i need write a unix script to do this.
... (1 Reply)
Discussion started by: gaddamshashank
1 Replies
6. Shell Programming and Scripting
Hello Guys
Please treat this as urgent .
Can you please kindly help me to know how to archive files in a directory which has more than one row
Thanks for your time and help!! (3 Replies)
Discussion started by: Pratik4891
3 Replies
7. UNIX for Dummies Questions & Answers
Hi there, I am very new to unix and having trouble with a fairly simple statement:
cd /user
ls -t -c1 | sed -ne '11,$p' | mv xargs archive/
What I want the code to do is sort all files in a directory by timestamp, select all of the files after the 10th file, and then move those files... (3 Replies)
Discussion started by: DSIReady
3 Replies
8. UNIX for Dummies Questions & Answers
I cant seem to work out how to count the number of executable files in a particular tar archive? Only in a directory as a whole.
I also cant work out how to count number of certain file types in a tar archive. Only the directory, pretty stuck :( (9 Replies)
Discussion started by: Razor147
9 Replies
9. Shell Programming and Scripting
Hi,
I have to check the files in another server using sftp to do that, below is the code i am going with
#!/bin/bash
export SRC_FOLDER=$1
export ARC_FOLDER=$2
HOST=as07u3456
USER=relfag
sftp ${USER}@${HOST} <<EOF
cd $SRC_FOLDER/DSCOR
ls
bye
EOF
echo "done"
whatever the files i... (8 Replies)
Discussion started by: ursrami
8 Replies
10. Shell Programming and Scripting
Requirement:
Under fuse application we have placeholders called containers;
Every container has their logs under:
<container1>/data/log/fuse.log
<container1>/data/log/fuse.log.1
<container1>/data/log/fuse.log.XX
<container2>/data/log/fuse.log... (6 Replies)
Discussion started by: Arjun Goswami
6 Replies
mkfset(8) System Manager's Manual mkfset(8)
NAME
mkfset - Create a fileset in an existing AdvFS file domain
SYNOPSIS
/sbin/mkfset domain fileset
OPERANDS
Specifies the name of an existing AdvFS file domain. Specifies the name of the fileset to be created in the specified file domain.
DESCRIPTION
The mkfset command creates an AdvFS fileset within an existing file domain. You must create at least one fileset per file domain; however,
you can create multiple filesets within a file domain. You can mount and unmount each fileset independently of the other filesets in the
file domain. You can assign fileset quotas (block and file usage limits) to filesets.
Use the following commands to manipulate filesets: Displays the filesets associated with a domain. Removes a fileset (and all of its
files) from the file domain. Assigns a new name to an existing fileset. Changes fileset attributes; specifically fileset quotas.
For more information, see the reference pages for each command.
RESTRICTIONS
You must be the root user to use this utility.
Each fileset within a domain must have a unique name of up to 31 characters. All whitespace characters (tab, new line, space and so on)
and the / # : * ? characters are invalid for fileset names.
EXAMPLE
The following example creates two filesets, credit_fs and debit_fs, within an existing domain called accounts_dmn. # mkfset accounts_dmn
credit_fs # mkfset accounts_dmn debit_fs To mount the newly created credit_fs fileset on the /mnt/credit directory, enter: # mount -t advfs
accounts_dmn#credit_fs /mnt/credit You can add filesets to the /etc/fstab file in the same manner that you add any file system. Once added,
filesets are mounted each time you reboot the system and fileset quotas are enabled. For example, to automatically mount the credit_fs
fileset, add the following line to your fstab file:
accounts_dmn#credit_fs /mnt/credit advfs rq, userquota, groupquota
SEE ALSO
Commands: chfsets(8), mkfdmn(8), renamefset(8), rmfset(8), showfdmn(8), showfsets(8)
File Formats: advfs(4)
mkfset(8)