[p4] My backup script, for review

R. Tyler Ballance tyler at bleepsoft.com
Mon Oct 30 10:10:29 PST 2006


On Oct 30, 2006, at 11:22 AM, <Ken.Williams at thomson.com>  
<Ken.Williams at thomson.com> wrote:


>>
>> Cron has its own idea what to do when it runs a script like
>> the one I read, which has no shebang line.
>
> Yeah, true - nobody should ever be installing scripts anywhere  
> without a
> shebang line.  I assumed the OP knew that.

Heh, funny this should become a point of contention, I found out that  
my blog software was completely puking on #!/usr/local/bin/zsh for  
some reason causing over an hour of pain trying to figure out why I  
couldn't post my bloody script.

But yes, in the actual script, the shebang line is there, just not in  
the web version.

If I were to want to do more complex backups, would you all recommend  
that I script in bourne-shell there as well? It seems so limiting, if  
I wanted to backup specific labels separately, various branches, etc.  
It seems like an appropriate P4Ruby or P4Perl job so one doesn't have  
to error check every /usr/local/bin/p4 call in the script before  
continuing.


Cheers

R. Tyler Ballance: Lead Mac Developer at bleep. software
contact: tyler at bleepsoft.com | jabber: tyler at jabber.geekisp.com




More information about the perforce-user mailing list