Backup - Delete issues

Status
Not open for further replies.

anagnost

Usenet Archive
Joined
Aug 18, 2001
Messages
12
Reaction score
0
This morning I faced the following strange and dangerous situation. I backed up a model to a different directory and then I deleted all verions of the model from session and current directory (file/delete/all versions). After this I closed ProE and from the windows manager I deleted the whole directory where I was working before. When after this I tried to open the model that I backed up I found that nothing was saved in that directory....PANIC...my model was lost.

I tried the same with another test model and again ProE did the same. I caled RAND and they said that this is normal behavior and they couldn't understand why I was complaining!!!

I'd like to know which is your opinion for this?

vassilis
 
anagnost wrote:

This morning I faced the following strange and dangerous situation. I backed up a model to a different directory and then I deleted all verions of the model from session and current directory (file/delete/all versions). After this I closed ProE and from the windows manager I deleted the whole directory where I was working before. When after this I tried to open the model that I backed up I found that nothing was saved in that directory....PANIC...my model was lost.

I tried the same with another test model and again ProE did the same. I caled RAND and they said that this is normal behavior and they couldn't understand why I was complaining!!!
...

Well, You'd better behave like a climber: first make sure the new bolt will hold the rope (and You) - then untie the old one.

DELETE ALL is always dangerous, and I suspect that Your operating system has tricked out Pro/E backup with some "disk full", "no write permissions" or "its monday-dont like that operation today/unexpected exception" behaviour (and You oversaw it).

Always have a backup on tape or removable disk (I prefer ZIP) - something outside Your harddisk. But if there is windows as "OS"on Your computerYou possibly can "undelete" and gather some fragments of Your data.

walther
 
anagnost wrote:

This morning I faced the following strange and dangerous situation. I backed up a model to a different directory and then I deleted all verions of the model from session and current directory (file/delete/all versions). After this I closed ProE and from the windows manager I deleted the whole directory where I was working before. When after this I tried to open the model that I backed up I found that nothing was saved in that directory....PANIC...my model was lost.

I tried the same with another test model and again ProE did the same. I caled RAND and they said that this is normal behavior and they couldn't understand why I was complaining!!!
...

Well, You'd better behave like a climber: first make sure the new bolt will hold the rope (and You) - then untie the old one.

DELETE ALL is always dangerous, and I suspect that Your operating system has tricked out Pro/E backup with some "disk full", "no write permissions" or "its monday-dont like that operation today/unexpected exception" behaviour (and You oversaw it).

Always have a backup on tape or removable disk (I prefer ZIP) - something outside Your harddisk. But if there is windows as "OS"on Your computerYou possibly can "undelete" and gather some fragments of Your data.

walther
 
Walther Mathieu wrote:

anagnost wrote:

> This morning I faced the following strange and dangerous
> situation.

[.....]

> vassilis

[.....]

But if there is windows as "OS"on Your computerYou possibly can "undelete" and gather some fragments of Your data.

walther

I'm sorry because the above was not of much help to You if You emptied Your desktop dumpster in the meantime. If it's UNIX You use You should take into account some safety net by creating a ~/dumpster directory and have an

alias rm "mv \!* dumpster"

may be in Your .loginrc. Caution: that prevents a "rm *"-catastrophe but does not hinder Pro/E to DELETE ALL irrevocably.
 
On Sat, 26 Jan 2002 08:35:47 +0100, Walther Mathieu
wrote:

anagnost wrote:

> This morning I faced the following strange and dangerous
> situation. I backed up a model to a different directory and then
> I deleted all verions of the model from session and current
> directory (file/delete/all versions). After this I closed ProE
> and from the windows manager I deleted the whole directory where
> I was working before. When after this I tried to open the model
> that I backed up I found that nothing was saved in that
> directory....PANIC...my model was lost.
>
> I tried the same with another test model and again ProE did the ...

What I've found is when you use the backup command ProE then makes that particular directory the active directory for any saves or deletes you do afterwards. Why, God only knows. Maybe some genius from PTC can tell us.
I
 
Grahame Ward wrote:

On Sat, 26 Jan 2002 08:35:47 +0100, Walther Mathieu
wrote:

>anagnost wrote:
>
>> This morning I faced the following strange and dangerous
>> situation. I backed up a model to a different directory and then
>> I deleted all verions of the model from session and current
>> directory (file/delete/all versions). After this I closed ProE
>> and from the windows manager I deleted the whole directory where
>> I was working before. When after this I tried to open the model
>> that I backed up I found that nothing was saved in that ...

I now have to apologize for my ignorance. I was wrong! And:

You're damn right! I tried that with 2 directories "test1" and "test2", test1 containing some model. Then I let Pro/E backup it to the test2 dir - *without* changing workdir - now both contain the data. Now - workdir still test1- I deleted all (both mem and files) from within Pro/E and in return there's nothing left in - test2!

test1 is not in any way afflicted yet! I tried it twice, second time looked if the workdir eventually had changed through the backup. Apparently it had not. The DELETE ALL command deleted everything in the backup dir instead of the workdir!!!

Seems path variables within the program are not properly set and get badly confused by switching directories implicitly from the file selector box of the backup function. This really appears to be is a MAJOR BUG in Pro/E.

My next test was: I changed the workdir to test2 explicitly before backing up and then explicitly back to test1 before giving the delete all command.
Even then: same shit again - Pro/E deletes all files from backup dir instead of workdir!

So one has to be aware that anytime one tries to make a backup-then-delete attempt Pro/E does indeed delete the backup! As I found out this behaviour occurred in V20. I can't believe it. Doesn't PTC TEST their software before releasing?

Walther.
 
Walther Mathieu wrote in

Grahame Ward wrote:

So one has to be aware that anytime one tries to make a backup-then-delete attempt Pro/E does indeed delete the backup! As I found out this behaviour occurred in V20. I can't believe it. Doesn't PTC TEST their software before releasing?

Walther.

I haven't been following this thread in intense detail (the Pro/E file commands give me headaches), but what you mention above has always been true. The backup command does two things: 1) it creates copies of the object (and dependents) in the specified directory, and 2) it changes the session objects to now refer to the backup directory. It does not change the working directory. If you do a backup, and then make a change and save, it will save in the backup directory. This is why I feel backup is poorly named - it really acts like a 'save as with dependents'. So, lets re-trace the steps of the original poster:
- open an assembly from the working dir.
- backup the assy to a backup dir
* at this point, the objects in session now 'come from' the backup dir, and any saves will leave the updated copies in the backup dir.
- Use the Delete->All Versions command in Pro/E to clear session and files on disk.
* Now you've wiped them from session and cleared them from disk. Since the backup command relocated these objects refer to the backup dir, the backup dir files get wiped out. The only Pro/E objects remaining are the ones in your working dir - the backup dir and session are empty.
- Using an outside program, delete the files in the working dir.
* Everything is gone.

This is how Pro/E has done it since day one. Unfortunately, the names of these commands are horribly unintuitive. I'd like to rename backup to something like 'Relocate and Save', Save As should become 'Save a Copy' (which they finally did change).

Dave

Dave
 
On Sat, 26 Jan 2002 18:14:49 +0100, Walther Mathieu
wrote:

Grahame Ward wrote:

> On Sat, 26 Jan 2002 08:35:47 +0100, Walther Mathieu
> wrote:
>
> >anagnost wrote:
> >
> >> This morning I faced the following strange and dangerous
> >> situation. I backed up a model to a different directory and then
> >> I deleted all verions of the model from session and current
> >> directory (file/delete/all versions). After this I closed ProE
> >> and from the windows manager I deleted the whole directory where ...

You know what I learnt to do? Backup twice - 1st to the other directory, then a 2nd time to the working directory. Presto - back to normal - but this is a workaround.

So one has to be aware that anytime one tries to make a backup-then-delete attempt Pro/E does indeed delete the backup! As I found out this behaviour occurred in V20. I can't believe it. Doesn't PTC TEST their software before releasing?

Walther.
 
On 26 Jan 2002 15:22:10 -0600, David Geesaman
wrote:

Walther Mathieu wrote in

> Grahame Ward wrote:
>

> So one has to be aware that anytime one tries to make a
> backup-then-delete attempt Pro/E does indeed delete the backup! As I
> found out this behaviour occurred in V20. I can't believe it. Doesn't
> PTC TEST their software before releasing?
>
> Walther.
...

I'm assuming, Dave, that this is a type of command that you've encountered before in other applications. I've never seen one like that. Maybe PTC should change the way the command works rather than change the name of the command.

I find making a backup useful, or at least in the way I expected backup *should* work before I discovered otherwise. What I want to do is save a file at a particular time to another folder, then go back to my work. That way the backed up file is not affected by any "delete old versions" commands. That's all I want.
 
As noted in some of the other newsgroups, if you're running a Windows O/S there are numerous file recovery tools available. One option is "FileRestore" from Winternals Software--

www.winternals.com/products/repairandrecovery/filerestore.asp

This $39 utility recovers files deleted from any Windows XP/2000/NT/Me/9x system regardless of whether emptied from the Recycle Bin, deleted via a command prompt or with a removed directory, by a remote process or uninstall, etc. It's designed to be effective regardless of whether installed before or after an accidental deletion.

FileRestore works on NTFS, FAT, and FAT32 drives. It recovers files (including compressed files) deleted from hard drives- plus floppy disks, Jaz, Zip, and even CompactFlash photo cards.

While "after the fact" file recovery is inherently a bit of a gamble, FileRestore users have reported recovering intact some (to me, anyway) amazingly large files. But please note:

Regardless of which recovery program is used, it is recommended that you--

To the extent possible stop all disk activity on your system without shutting the system down. Turn off any scheduled defragmentation and do not defrag your system until lost files are recovered. Close all applications including email and Web browsing software and, if removable media such as a floppy disk drive is available on your system, disconnect your system from the network as soon as is practical. This will reduce the possibility that deleted files will be overwritten.

If installing FileRestore, we recommend that you download and install it on a second system and follow the "Emergency Installation" procedure in the Help file. This procedure will allow you to run FileRestore from a floppy disk or network drive to help maximize the chances of recovery.

Hope this helps.

- Paul (a Winternals employee)

>> >But if there is windows as "OS"on Your computerYou possibly can
>> >"undelete" and gather some fragments of Your data.
>> >
 
Grahame Ward wrote in

> This is how Pro/E has done it since day one. Unfortunately,
> the names
>of these commands are horribly unintuitive. I'd like to rename backup
>to something like 'Relocate and Save', Save As should become 'Save a
>Copy' (which they finally did change).
>
> Dave

I'm assuming, Dave, that this is a type of command that you've encountered before in other applications. I've never seen one like that. Maybe PTC should change the way the command works rather than change the name of the command.

I think of 'backup' to mean stopping what you're doing, and saving the current version of your work to an alternate location in a one-step operation. Kind of like backing up your hard drive to tape. Pro/E bungles that logic by now changing the location on disk of your session objects to the backup directory. In order to get out of that, you can just clear session and reload from the original location (slow in the case of a big assy). Still clumsy.

I find making a backup useful, or at least in the way I expected backup *should* work before I discovered otherwise. What I want to do is save a file at a particular time to another folder, then go back to my work. That way the backed up file is not affected by any "delete old versions" commands. That's all I want.

All anyone wants. It's a shame the command (doesn't) work the way it does, or else everyone would use it more. Perhaps an underhanded way to push Intralink and baselining? :)

Dave
 
Status
Not open for further replies.

Latest threads

Back
Top