• Welcome to Valhalla Legends Archive.
 

Software Request: Backup

Started by Joe[x86], October 04, 2005, 04:57 PM

Previous topic - Next topic

Joe[x86]

Uh, yeah. A friend of mine is looking for a program that can automatically take files from a list, and put them in an alternate location, from another list. Anyone know a program that can do this, or is willing to write one?
Quote from: brew on April 25, 2007, 07:33 PM
that made me feel like a total idiot. this entire thing was useless.

K

Why do you need a list for the destination? Or do you want to rename the files as well as move them?

Charles

Basically what the program is supposed to do is copy a file from a destination like C:\My Documents\Pics\Pic.bmp to another folder on a different computer that is networked with the source destination.   Kind of need the ability to make a list of source locations and destination locations and a way to tell it what time to start this activity too please.  Think it's possible?


Joe[x86]

Quote from: brew on April 25, 2007, 07:33 PM
that made me feel like a total idiot. this entire thing was useless.

nslay


Kp

#!/usr/bin/perl

# This is off-the-cuff, but it should do what you want.  No warranties, of course.
# This program is not suitable for any purpose at all.  Back up your entire house before using.
# User assumes all responsibility for installing perl and for any damage caused by the use, misuse, or incompetent use, of this program.

while (<>) {
  chomp;
  ($l, $r) = split;
  rename $l, $r;
}
[19:20:23] (BotNet) <[vL]Kp> Any idiot can make a bot with CSB, and many do!

iago

I dunno, the easier way might be:

scp `cat sourcefiles` destip:destdirectory

Example:
Quoteiago@Slayer:~/tmp$ touch test1 test2 testc
iago@Slayer:~$ cat > files
test1
test2
testc

iago@Slayer:~/tmp$ scp `cat files` 24.76.173.61:/tmp
[email protected]'s password:
test1                                         100%    0     0.0KB/s   00:00   
test2                                         100%    0     0.0KB/s   00:00   
testc                                         100%    0     0.0KB/s   00:00   
iago@Slayer:~/tmp$
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Kp

Quote from: iago on October 04, 2005, 11:11 PMI dunno, the easier way might be:

scp `cat sourcefiles` destip:destdirectory

True, but that doesn't permit per-file renames, and it'll require several extra utilities to work on an MS-Windows system.  My method only requires perl.  Yours requires scp, cat, and a shell smart enough to process backticks. :)
[19:20:23] (BotNet) <[vL]Kp> Any idiot can make a bot with CSB, and many do!

iago

Quote from: Kp on October 04, 2005, 11:39 PM
Quote from: iago on October 04, 2005, 11:11 PMI dunno, the easier way might be:

scp `cat sourcefiles` destip:destdirectory

True, but that doesn't permit per-file renames, and it'll require several extra utilities to work on an MS-Windows system.  My method only requires perl.  Yours requires scp, cat, and a shell smart enough to process backticks. :)

Well, I was going to use a "for i in..." which would support renaming with a simple "cut" or something, but that would require you to input your password for every file :)
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Joe[x86]

Quote from: brew on April 25, 2007, 07:33 PM
that made me feel like a total idiot. this entire thing was useless.

rabbit

omg.....batch
copy %%a, %%b
Done.
Grif: Yeah, and the people in the red states are mad because the people in the blue states are mean to them and want them to pay money for roads and schools instead of cool things like NASCAR and shotguns.  Also, there's something about ketchup in there.

Joe[x86]

Hm, come to think about it, he could just map the drive hes backing up to as Z:.
Quote from: brew on April 25, 2007, 07:33 PM
that made me feel like a total idiot. this entire thing was useless.

Explicit

I'm still lost as to what you guys are trying to do; all I'm getting out of this is the synchronization aspect, but I'm not exactly sure.
I'm awake in the infinite cold.

[13:41:45]<@Fapiko> Why is TehUser asking for wang pictures?
[13:42:03]<@TehUser> I wasn't asking for wang pictures, I was looking at them.
[13:47:40]<@TehUser> Mine's fairly short.

Joe[x86]

Charlie doesn't exactly have a stable system, yet he wants his files to stay safe.
Quote from: brew on April 25, 2007, 07:33 PM
that made me feel like a total idiot. this entire thing was useless.

Yoni

Quote from: Kp on October 04, 2005, 11:39 PM
My method only requires perl. Yours requires scp, cat, and a shell smart enough to process backticks. :)
Kp's method, then, is the one with heavier requirements, isn't it?