I need a copy program that only overwrites old files

Open discussion about any topic, as long as you abide by the rules of course!
Post Reply
phantasmagoria
Posts: 8525
Joined: Wed Oct 22, 2003 7:00 am

I need a copy program that only overwrites old files

Post by phantasmagoria »

At the moment I'm working on large numbers of the same files at both home and university and am transferring the two on one of those usb stick things (actually, i just use my camera's xd card, but that's irrelevant).

I'm constantly forgetting to write an important file to the usb stick because I'm in a hurry, or managing to overwrite a newer file with an old one. What I need is a program that enables me to just copy one directory over another one and compares the "modified" date: only overwriting files if the original file is older than the one being copied.

Windows really should do this, but it doesn't :(
[size=85]
User avatar
PhoeniX
Posts: 4067
Joined: Fri Aug 04, 2000 7:00 am

Post by PhoeniX »

Sourcesafe > *

But your uni would need it too :(
User avatar
PhoeniX
Posts: 4067
Joined: Fri Aug 04, 2000 7:00 am

Post by PhoeniX »

Can't you log into your home directory from home? I can log into mine using an FTP-link system (a web folder I think) and copy files to / from my uni drive :shrug:


edit:

Image
Last edited by PhoeniX on Mon Jan 16, 2006 12:14 am, edited 3 times in total.
phantasmagoria
Posts: 8525
Joined: Wed Oct 22, 2003 7:00 am

Post by phantasmagoria »

I have done in the past, but the files I'm dealing with are massive ammounts of high quality jpegs.

I can sweet talk the computer guy into letting me install pretty much anything on one of the computers, he's already installed fraps and taken the internet filter off it for me.
[size=85]
User avatar
PhoeniX
Posts: 4067
Joined: Fri Aug 04, 2000 7:00 am

Post by PhoeniX »

Ah right.. hmm.. I'm sure i've seen something simlar to this but can't think of its name
phantasmagoria
Posts: 8525
Joined: Wed Oct 22, 2003 7:00 am

Post by phantasmagoria »

I had a bit of a search on google, and found a few things but they were bloatware crap; i'm looking for something nice and compact, it doesn't really seem like a difficult thing to do.
[size=85]
User avatar
PhoeniX
Posts: 4067
Joined: Fri Aug 04, 2000 7:00 am

Post by PhoeniX »

hmm.. I could possibly make something reasonably quickly to do this for you. Basically:


Select source dir.
Select destination dir.

Program copies all files from source -> destination, if file already exists, and is newer then overwrite, else if its older don't overwrite?
phantasmagoria
Posts: 8525
Joined: Wed Oct 22, 2003 7:00 am

Post by phantasmagoria »

exactly that.

If you would that would be utterly grand, but if it's going to take you an excessive amount of time, don't worry too much about it.
[size=85]
User avatar
PhoeniX
Posts: 4067
Joined: Fri Aug 04, 2000 7:00 am

Post by PhoeniX »

I need to bush up my .NET skills for a programming assignment in it anyway :D
Freakaloin
Posts: 10620
Joined: Tue May 07, 2002 7:00 am

Post by Freakaloin »

.net...lol...
a defining attribute of a government is that it has a monopoly on the legitimate exercise of violence...
phantasmagoria
Posts: 8525
Joined: Wed Oct 22, 2003 7:00 am

Post by phantasmagoria »

well, if you really don't mind then i'll sacrifice my first born in your name, which will bring you great riches
[size=85]
mjrpes
Posts: 4980
Joined: Tue Nov 28, 2000 8:00 am

Post by mjrpes »

Freakaloin wrote:.net...lol...
A handy language/environment if you want to build a GUI app quick and simple.
[size=85]yea i've too been kind of thinking about maybe a new sig but sort of haven't come to quite a decision yet[/size]
Freakaloin
Posts: 10620
Joined: Tue May 07, 2002 7:00 am

Post by Freakaloin »

yeah but its still for morons...
a defining attribute of a government is that it has a monopoly on the legitimate exercise of violence...
User avatar
raw
Posts: 2742
Joined: Tue Nov 16, 1999 8:00 am

Post by raw »

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

Post by Foo »

This can be done with a .bat file using the xcopy windows command.

I dont have time to write one, but it should be trivial for Pho or Raw.
obsidian
Posts: 10970
Joined: Mon Feb 04, 2002 8:00 am

Post by obsidian »

I use Beyond Compare a lot:
http://www.scootersoftware.com/
[size=85][url=http://gtkradiant.com]GtkRadiant[/url] | [url=http://q3map2.robotrenegade.com]Q3Map2[/url] | [url=http://q3map2.robotrenegade.com/docs/shader_manual/]Shader Manual[/url][/size]
phantasmagoria
Posts: 8525
Joined: Wed Oct 22, 2003 7:00 am

Post by phantasmagoria »

Foo wrote:This can be done with a .bat file using the xcopy windows command.

I dont have time to write one, but it should be trivial for Pho or Raw.
mmm, a batch file would be ideal...i could even run it without having to bother the computer bloke.
[size=85]
User avatar
PhoeniX
Posts: 4067
Joined: Fri Aug 04, 2000 7:00 am

Post by PhoeniX »

I have something for you to test :o
Guest

Post by Guest »

Wasn't the Windows Briefcase supposed to do this?
User avatar
FragaGeddon
Posts: 3229
Joined: Sun Sep 17, 2000 7:00 am

Post by FragaGeddon »

This is what you want: SyncBack
mjrpes
Posts: 4980
Joined: Tue Nov 28, 2000 8:00 am

Post by mjrpes »

The problem with copying based off the the 'date modified' is that the date/time windows is currently set to can be off. Not the biggest problem but one that you should keep in mind. That is why lots of backup programs use the 'archive bit' to decide whether or not a file needs to be backed up. However, this raises its own problems if the program you use fails to set the bit and therfore the backup program fails to copy it.

Well, anyway. I use this program called Cobian Backup. Works for me.
[size=85]yea i've too been kind of thinking about maybe a new sig but sort of haven't come to quite a decision yet[/size]
4days
Posts: 5465
Joined: Tue Apr 16, 2002 7:00 am

Post by 4days »

Foo wrote:This can be done with a .bat file using the xcopy windows command.

I dont have time to write one, but it should be trivial for Pho or Raw.
:icon14:

run xcopy with /? to see how to use it.

you can also 'touch' files with the copy command, if there's a specific file you want included/excluded.
User avatar
PhoeniX
Posts: 4067
Joined: Fri Aug 04, 2000 7:00 am

Post by PhoeniX »

Problem solved. If anyone wants the exe (or indeed source) let me know.
Post Reply