Copying files wile they are in use?

Locked
AmIdYfReAk
Posts: 6926
Joined: Thu Feb 10, 2000 8:00 am

Copying files wile they are in use?

Post by AmIdYfReAk »

Anyone know a way to do this?

i have a script to Copy all needed files that require to be backed up... but one problem, i got ~5 files that i need to have backed up, but they will allways be used ( they are databases ) and i obviously cannot copy them the usuall way..

:)
User avatar
Foo
Posts: 13840
Joined: Thu Aug 03, 2000 7:00 am
Location: New Zealand

Post by Foo »

I think xcopy will let you copy locked files.
AmIdYfReAk
Posts: 6926
Joined: Thu Feb 10, 2000 8:00 am

Post by AmIdYfReAk »

Tryed it, Sharing violation..

i checked ofer the switches for the app as well, and no go :/
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Re: Copying files wile they are in use?

Post by ^misantropia^ »

AmIdYfReAk wrote:Anyone know a way to do this?
Install Linux.

On a serious note, IIRC, the files are locked at the kernel level. Usermode apps cannot bypass that.
AmIdYfReAk
Posts: 6926
Joined: Thu Feb 10, 2000 8:00 am

Post by AmIdYfReAk »

Hummmm, i figuered that.. So i need something low level or actually Close the app ( 30 min process ) then start it back up ( another 20 min ).. .

its windows 2003 Small server installed if that matters :)
User avatar
FragaGeddon
Posts: 3229
Joined: Sun Sep 17, 2000 7:00 am

Post by FragaGeddon »

User avatar
raw
Posts: 2739
Joined: Tue Nov 16, 1999 8:00 am

Post by raw »

riddla wrote:try a program called securecopy
:icon14: :icon14:

http://www.scriptlogic.com/products/securecopy/
AmIdYfReAk
Posts: 6926
Joined: Thu Feb 10, 2000 8:00 am

Post by AmIdYfReAk »

can anyone give me a link on how to get that app working? i have it installed and its prompting for a SFTP Server, do i just set one up? or do i need to run a certan one to get it going?
AmIdYfReAk
Posts: 6926
Joined: Thu Feb 10, 2000 8:00 am

Post by AmIdYfReAk »

i am going to give G6 server a Go, i will report back with the findings. :)
Canis
Posts: 3798
Joined: Sun Jan 14, 2001 8:00 am

Post by Canis »

I dont think you can because the system reserves the file in memory or something like that as long as the "fopen" or other similar command has been run for a file. Programs that allow you to copy a file that's "in use" generally make a copy of the original file and then have that copy open for editing. But then again, I'm no programmer...
AmIdYfReAk
Posts: 6926
Joined: Thu Feb 10, 2000 8:00 am

Post by AmIdYfReAk »

Hummmm, i need to find atleast something....

this secure copy looks like it is going to work, i have tryed it with a few doc's on a test box, i have not given it a go.

And btw, 2+ grand for a licence for that software?!?!!? and thats only good for a year?!?!?! Jesus!
Locked