04-18-2002
Hugo,
I think that TRUEST wanted to also manage these files to make sure they STAY in the users' home directories as well as when he creates new users. You also have to take into account that the user will have other files in their home dirs. So, you must specifically check for the files in question.
That's why I included a line to check for them as well by name and quantity.
BTW, it is also good to let them write the script and not give it all away. They will never learn if we give them the answers.
Outlines are good but not actual full blown code, even though I did kinda the same thing.
Sorry TRUEST.
8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Suppose I have a unix file which contain a lost of 60 files like
filename1
filename2
...
..
...
filename60
I want to write a unix script that will pick up first 10 files in first run
10-20 files in 2 run
20-30 files in 3 run
30-40 files in 4 run
40-50 files in 5 run
50-60 files in 6... (2 Replies)
Discussion started by: er_zeeshan05
2 Replies
2. Shell Programming and Scripting
as we can find file greater than 1 MB with find command as:
find /dir -name '*' -size +1M
find /dir/* -name '*' -size +1M
but wats its doing is , its finding files only in current directory not in sub-directories. i want files from sub-directories too.
Please help... Thanx in... (3 Replies)
Discussion started by: manoj_dahiya22
3 Replies
3. UNIX for Dummies Questions & Answers
Ok here is my issue. I have processes which will get screwed up and not run because certain log directories wind up filled too much and a directory will have 100,000 files in it. The only way to fix this is to move files out of this directory until the number of files is small enough that the... (7 Replies)
Discussion started by: MrEddy
7 Replies
4. Shell Programming and Scripting
Hello everyone, my friend is asking for yOur Help. He is asking the script for combined find and changemode utility... Thank you (4 Replies)
Discussion started by: iennetastic
4 Replies
5. UNIX for Dummies Questions & Answers
Hi all,
I am going to reitre one solaris 10 server soon.
What are the important config files to backup in case if i want to check how this system was setup (need list in general) ?
Thanks! in advance (1 Reply)
Discussion started by: lramsb4u
1 Replies
6. OS X (Apple)
I'm looking to find/create a script so that when a download is complete, I can run the script in order for it to automatically move a file such as...
'example.avi' into my videos folder
I'm a novice when it comes to scripting, any advice/help would be greatly appreciated!
Thanks
Andrew (10 Replies)
Discussion started by: abudis
10 Replies
7. Shell Programming and Scripting
Here is the script I want to run to deleted log files after a certain time:
touch /usr/WebSphere/AppServer/profiles/AppSrv01/apps/RSA/logs
find /usr/WebSphere/AppServer/profiles/AppSrv01/apps/RSA/logs -atime +120 - exec rm -rf {}\;
Exerytime I run it, it throws me the error:
find: paths must... (2 Replies)
Discussion started by: lennyz04
2 Replies
8. Shell Programming and Scripting
Hi,
I have a huge structure of directories and subdirectories contsining some data. The lowest folders contain a file "image.png" which need to be converted to "folder.jpg". But how can I do that for all these files automatically? That's what I alredy have
find /path -type f -name... (1 Reply)
Discussion started by: KarlKarpfen
1 Replies
LEARN ABOUT DEBIAN
bup-tag
bup-tag(1) General Commands Manual bup-tag(1)
NAME
bup-tag - tag a commit in the bup repository
SYNOPSIS
bup tag
bup tag <tag name> <committish>
bup tag -d <tag name>
DESCRIPTION
bup tag lists, creates or deletes a tag in the bup repository.
A tag is an easy way to retreive a specific commit. It can be used to mark a specific backup for easier retrieval later.
When called without any arguments, the command lists all tags that can be found in the repository. When called with a tag name and a com-
mit ID or ref name, it creates a new tag with the given name, if it doesn't already exist, that points to the commit given in the second
argument. When called with '-d' and a tag name, it removes the given tag, if it exists.
bup exposes the contents of backups with current tags, via any command that lists or shows backups. They can be found under the /.tag
directory. For example, the 'ftp' command will show the tag named 'tag1' under /.tag/tag1.
Tags are also exposed under the branches from which they can be reached. For example, if you create a tag named 'important' under branch
'computerX', you will also be able to retrieve the contents of the backup that was tagged under /computerX/important. This is done as a
convenience, and should the branch 'computerX' be deleted, the contents of the tagged backup will be available through /.tag/important as
long as the tag is not deleted.
OPTIONS
-d, --delete
delete a tag
EXAMPLE
$ bup tag new-puppet-version hostx-backup
$ bup tag
new-puppet-version
$ bup ftp "ls /.tag/new-puppet-version"
files..
$ bup tag -d new-puppet-version
SEE ALSO
bup-save(1), bup-split(1), bup-ftp(1), bup-fuse(1), bup-web(1)
BUP
Part of the bup(1) suite.
AUTHORS
Gabriel Filion <lelutin@gmail.com>.
Bup unknown- bup-tag(1)