11-10-2005
Not sure about you requirements, but are you taking care of these things:
(a) the recycle bin should ideally be able to store multiple files with same names (see the RecycleBin on Windows)
(b) If I understand right you are trying to store "pwd" as the location where the file will be finally restored. Careful here, because while using the rm command I can specify a pathname myself. i.e. being in the directory "/home" I can delete a file like this "rm /home/user10/testfile.txt". Obviously you dont want to restore testfile.txt to "/home"
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
help please
i have "inherited" a Sco Server (the administrator departed in a hurry...yes we are chasing him..) and haven't used Unix for 8 years.
i have a file that i need to retrieve from a tape.
i have been able to find the file on tape using the cpio -ivt command.
however...
the problem I... (3 Replies)
Discussion started by: mfischer
3 Replies
2. UNIX for Dummies Questions & Answers
Can anyone please help...?
Managed to do a ufsdump of files to tape. Having trouble using ufsrestore to pull a single file back by filename??
I have dumped a single file to tape also because looking through the other threads, I noticed that you have to tell it to skip files before you get to... (1 Reply)
Discussion started by: Jonathan
1 Replies
3. Solaris
Is it possible to restore a TAR'ed file off of a tape to a location other than the original location? If so, how?
(The MAN pages give examples of how to restore only to the originating location.)
Thanks!! (1 Reply)
Discussion started by: FredSmith
1 Replies
4. UNIX for Dummies Questions & Answers
I was recently given the responsibility of the unix box at our work. Without much training, I now have to go back and restore a file from tape. I'm having some trouble with it. I'm getting an error with the blocksize.
The part of the script that does the tar looks like this:
tar cvfX... (11 Replies)
Discussion started by: citrowske
11 Replies
5. UNIX for Dummies Questions & Answers
Hi,
Can any one tell me how to restore back the deleted file in unix?
I know the file name.
If i know the inode number of the file does help more to restore back the file? (1 Reply)
Discussion started by: siba.s.nayak
1 Replies
6. Shell Programming and Scripting
Hello everyone,
I am new to unix shell.
I have a file called Path.txt....and i have data in that as
1 abhi
2 avi
3 ash so on.....
1 ,2 ,3 is the... (2 Replies)
Discussion started by: AbhijitIT
2 Replies
7. Red Hat
Post deleted. (0 Replies)
Discussion started by: Nobody_knows_me
0 Replies
8. Shell Programming and Scripting
Hello everyone,
I am attempting to make a recycling bin type application in shell script (tcsh). I have the whole part of the application done where someone can recycle files from one location to the recycling bin (the lower half of the program), this is not a problem. However I wanted to make... (7 Replies)
Discussion started by: tastybrownies
7 Replies
9. UNIX for Dummies Questions & Answers
Is there a way I could recover a deleted text file with "rm -rf" command.
Running CentOS 6.5.
Thank you. (5 Replies)
Discussion started by: galford
5 Replies
10. UNIX for Advanced & Expert Users
Quite an obscure question I think.
We have a rebuild process for remote sites that allows us to PXE rebuild a till (actually a PC with a touch screen and various fancy bits) running CentOS. The current CentOS5 tills work just fine with a tar image restore and some personalisation. Sadly,... (4 Replies)
Discussion started by: rbatte1
4 Replies
LEARN ABOUT BSD
mkmanifest
MKMANIFEST(1) General Commands Manual MKMANIFEST(1)
NAME
mkmanifest - create a shell script to restore Unix filenames
SYNOPSIS
mkmanifest [ files ]
DESCRIPTION
Mkmanifest creates a shell script that will aid in the restoration of Unix filenames that got clobbered by the MSDOS filename restrictions.
MSDOS filenames are restricted to 8 character names, 3 character extensions, upper case only, no device names, and no illegal characters.
The mkmanifest program is compatible with the methods used in pcomm, arc, and mtools to change perfectly good Unix filenames to fit the
MSDOS restrictions.
EXAMPLE
I want to copy the following Unix files to a MSDOS diskette (using the mcopy command).
very_long_name
2.many.dots
illegal:
good.c
prn.dev
Capital
Mcopy will convert the names to:
very_lon
2xmany.dot
illegalx
good.c
xprn.dev
capital
The command:
mkmanifest very_long_name 2.many.dots illegal: good.c prn.dev Capital > manifest
would produce the following:
mv very_lon very_long_name
mv 2xmany.dot 2.many.dots
mv illegalx illegal:
mv xprn.dev prn.dev
mv capital Capital
Notice that "good.c" did not require any conversion, so it did not appear in the output.
Suppose I've copied these files from the diskette to another Unix system, and I now want the files back to their original names. If the
file "manifest" (the output captured above) was sent along with those files, it could be used to convert the filenames.
SEE ALSO
arc(1), pcomm(1), mtools(1)
local MKMANIFEST(1)