Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Rsync Script

by NiJo (Friar)
on Aug 18, 2008 at 19:20 UTC ( #705026=note: print w/ replies, xml ) Need Help??


in reply to Rsync Script

Don't take requirements too serious. In many cases they are open for discussion and can be softened. In your case maybe "15 min if no big file" is all the author needs.

I'd not worry too much about running two instances at the same time. Even if you find a proper way of locking, the line will be blocked by the big file. Effectively that is another way of serialization. Rumor: Cron does not start a new script if the old instance is still running.

Contrary to most other unix tools rsync can do most things on its own. You should have found the --max-size option of rsync. I see little use for Perl in this project. If you really want Perl in the mix, rsnapshot might be your ultimate backup script. It uses rsync and keeps hard links between unchanged files. Basically you get full backups every time with disk space and network traffic of incrementals.


Comment on Re: Rsync Script
Re^2: Rsync Script
by RyuMaou (Deacon) on Aug 18, 2008 at 19:41 UTC
    Yeah, this was sort of my thought, too.

    If this was on *nix, I'd say look at bash to make this all work. I'm a little rusty on my Windows command-line stuff, but I'm pretty sure there's a way to see if there's an instance running. Or, of course, you could install cygwin and do it all from bash that way.
    Really, though, if you hit Sourceforge, I'm pretty sure there are a bunch of front-ends for rsync that will run on Windows.
    Might be worth a look!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://705026]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (14)
As of 2014-07-11 13:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (224 votes), past polls