You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Salari, Kamran" <Ka...@philips.com> on 2012/02/22 01:27:20 UTC

hot-backup.py

Hi everyone,

I am new to Subversion, and I am using TortoiseSVN-1.7.3 and Slik-Subversion-1.7.2 on my XP system (Service Pack 3).  I would like to know if there is a Windows version of "hot-backup.py" which I can use.   It appears the script in "tools\backup" is written for a Unix environment.

I would appreciate your help.

Thanks,

Kamran Salari

________________________________
The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.

RE: hot-backup.py

Posted by "Salari, Kamran" <Ka...@philips.com>.
Thanks for responding to my question.  I changed the paths for svnlook.exe and svnadmin.exe to their absolute paths.  I used the following command, "hot-backup.py --help", to check the program.  I got the following error

----------------------------------------------------------------------------
L:\CONTROLS\Kamran\Subversion\BackupScript>hot-backup.py --help
  File "L:\CONTROLS\Kamran\Subversion\BackupScript\hot-backup.py", line 73
    chmod_tree(dirname, 0666, 0666)
                           ^
SyntaxError: invalid token
----------------------------------------------------------------------------

I do not know why it is not just printing the Usage information and exit.  I tried backing up the repository, I got the same error.

Thanks,

Kamran


-----Original Message-----
From: Stephen Butler [mailto:sbutler@elego.de]
Sent: Wednesday, February 22, 2012 12:53 AM
To: Nico Kadel-Garcia
Cc: Salari, Kamran; users@subversion.apache.org users
Subject: Re: hot-backup.py


On Feb 22, 2012, at 3:43 , Nico Kadel-Garcia wrote:

> On Tue, Feb 21, 2012 at 7:27 PM, Salari, Kamran <Ka...@philips.com> wrote:
> Hi everyone,
>
>
> I am new to Subversion, and I am using TortoiseSVN-1.7.3 and Slik-Subversion-1.7.2 on my XP system (Service Pack 3).  I would like to know if there is a Windows version of "hot-backup.py" which I can use.   It appears the script in "tools\backup" is written for a Unix environment.

Actually, the hot-backup.py script is cross-platform.  It uses Python's
subprocess module, which works fine on Windows (it's used in the
Subversion test suite).  I just tested the script again on Windows 7, just
to be sure.

Enter the absolute paths to svnlook.exe and svnadmin.exe at the top
of the script, e.g.,

  svnlook = r"C:\Program Files\Subversion\bin\svnlook.exe"

and you're all set.

Cheers,
Steve




The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.


Re: hot-backup.py

Posted by Stephen Butler <sb...@elego.de>.
On Feb 22, 2012, at 3:43 , Nico Kadel-Garcia wrote:

> On Tue, Feb 21, 2012 at 7:27 PM, Salari, Kamran <Ka...@philips.com> wrote:
> Hi everyone,
> 
> 
> I am new to Subversion, and I am using TortoiseSVN-1.7.3 and Slik-Subversion-1.7.2 on my XP system (Service Pack 3).  I would like to know if there is a Windows version of “hot-backup.py” which I can use.   It appears the script in “tools\backup” is written for a Unix environment.

Actually, the hot-backup.py script is cross-platform.  It uses Python's
subprocess module, which works fine on Windows (it's used in the
Subversion test suite).  I just tested the script again on Windows 7, just 
to be sure.

Enter the absolute paths to svnlook.exe and svnadmin.exe at the top 
of the script, e.g.,

  svnlook = r"C:\Program Files\Subversion\bin\svnlook.exe"

and you're all set.

Cheers,
Steve




Re: hot-backup.py

Posted by Nico Kadel-Garcia <nk...@gmail.com>.
On Tue, Feb 21, 2012 at 7:27 PM, Salari, Kamran
<Ka...@philips.com>wrote:

>  Hi everyone,****
>
> ** **
>
> I am new to Subversion, and I am using TortoiseSVN-1.7.3 and
> Slik-Subversion-1.7.2 on my XP system (Service Pack 3).  I would like to
> know if there is a Windows version of “hot-backup.py” which I can use.   It
> appears the script in “tools\backup” is written for a Unix environment.***
> *
>
> ** **
>
> I would appreciate your help. ****
>
> ** **
>
> Thanks,****
>
> ** **
>
> Kamran Salari
>
>
>
Could you  try running it under "CygWin" on Windows?

Re: hot-backup.py

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Feb 22, 2012, at 11:56, Salari, Kamran wrote:

> I am not running a server right now.  Our repository is on another computer and I access it through a network mapped drive.

Please stop doing that immediately and set up a proper server.


RE: hot-backup.py

Posted by "Salari, Kamran" <Ka...@philips.com>.
Hi Mark,

I am not running a server right now.  Our repository is on another computer and I access it through a network mapped drive.

Thanks,

Kamran

-----Original Message-----
From: Mark Phippard [mailto:markphip@gmail.com]
Sent: Wednesday, February 22, 2012 9:57 AM
To: Salari, Kamran
Cc: users@subversion.apache.org
Subject: Re: hot-backup.py

On Tue, Feb 21, 2012 at 7:27 PM, Salari, Kamran
<Ka...@philips.com> wrote:

> I am new to Subversion, and I am using TortoiseSVN-1.7.3 and
> Slik-Subversion-1.7.2 on my XP system (Service Pack 3).  I would like to
> know if there is a Windows version of "hot-backup.py" which I can use.   It
> appears the script in "tools\backup" is written for a Unix environment.

You might want to consider installing and running Subversion Edge on
your server:

http://www.open.collab.net/products/subversion/SVNedge.html

It provides a web based UI for managing your repositories and one of
the features it provides is scheduled backups.  So you can schedule a
hot copy backup to run hourly/daily as well as how many versions to
keep.  Then you do not have to mess around with scripts and Windows
task schedulers.

--
Thanks

Mark Phippard
http://markphip.blogspot.com/

The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.


Re: hot-backup.py

Posted by Mark Phippard <ma...@gmail.com>.
On Tue, Feb 21, 2012 at 7:27 PM, Salari, Kamran
<Ka...@philips.com> wrote:

> I am new to Subversion, and I am using TortoiseSVN-1.7.3 and
> Slik-Subversion-1.7.2 on my XP system (Service Pack 3).  I would like to
> know if there is a Windows version of “hot-backup.py” which I can use.   It
> appears the script in “tools\backup” is written for a Unix environment.

You might want to consider installing and running Subversion Edge on
your server:

http://www.open.collab.net/products/subversion/SVNedge.html

It provides a web based UI for managing your repositories and one of
the features it provides is scheduled backups.  So you can schedule a
hot copy backup to run hourly/daily as well as how many versions to
keep.  Then you do not have to mess around with scripts and Windows
task schedulers.

-- 
Thanks

Mark Phippard
http://markphip.blogspot.com/