Re: How to restore repositories from backup server

2025-01-17 Thread Daniel Sahlberg
fre 17 jan. 2025 kl. 18:43 skrev Nathan Hartman : > I don't know whether GPG-Agent can be configured to unlock > automatically at startup. (That probably would bring us back to the > issue of how to securely store the pin that would unlock it > automatically; it would probably end up being in plai

Re: How to restore repositories from backup server

2025-01-17 Thread Nathan Hartman
On Fri, Jan 17, 2025 at 7:40 AM Johan Corveleyn wrote: > Oh, and according to this cirata (previously wandisco) blog article it > should be possible to setup a Gnome Keyring without a GUI: > > https://community.cirata.com/s/article/How-to-set-up-encrypted-svn-password-storage-using-gnome-keyring-i

Re: How to restore repositories from backup server

2025-01-17 Thread Daniel Sahlberg
Den fre 17 jan. 2025 kl 07:25 skrev Bo Berglund : > On Fri, 17 Jan 2025 07:03:34 +0100, Daniel Sahlberg > wrote: > > >I agree with Bo here although I don’t understand enough about recent > >Linux-on-the-desktop development. A long time ago, setting DISPLAY was the > >way to declare where you want

Re: How to restore repositories from backup server

2025-01-17 Thread Johan Corveleyn
On Fri, Jan 17, 2025 at 1:27 PM Johan Corveleyn wrote: > > On Fri, Jan 17, 2025 at 7:24 AM Bo Berglund wrote: > ... > > -- > > $ svn --version: > > svn, version 1.14.2 (r1899510) > >compiled Jan 31 2023, 18:14:10 on aarch64-unknown-linux-gnu

Re: How to restore repositories from backup server

2025-01-17 Thread Johan Corveleyn
On Fri, Jan 17, 2025 at 7:24 AM Bo Berglund wrote: ... > -- > $ svn --version: > svn, version 1.14.2 (r1899510) >compiled Jan 31 2023, 18:14:10 on aarch64-unknown-linux-gnu > ... > The following authentication credential caches are available:

Re: How to restore repositories from backup server

2025-01-16 Thread Bo Berglund
On Fri, 17 Jan 2025 07:03:34 +0100, Daniel Sahlberg wrote: >I agree with Bo here although I don’t understand enough about recent >Linux-on-the-desktop development. A long time ago, setting DISPLAY was the >way to declare where you wanted to your GUI to appear. When SSH-ing into a >box you wasn’t

Re: How to restore repositories from backup server

2025-01-16 Thread Daniel Sahlberg
fre 17 jan. 2025 kl. 01:49 skrev Ryan Carsten Schmidt < subversion-2...@ryandesign.com>: > On Jan 16, 2025, at 17:09, Bo Berglund wrote: > > > > It should return the request for password into the channel that issued > the > > command rather than firing up a completely unrelated comm channel. (of >

Re: How to restore repositories from backup server

2025-01-16 Thread Ryan Carsten Schmidt
On Jan 16, 2025, at 17:09, Bo Berglund wrote: > > It should return the request for password into the channel that issued the > command rather than firing up a completely unrelated comm channel. (of course) > > If you get a landline phone call you do not reply in a cellphone, right? I understand

Re: How to restore repositories from backup server

2025-01-16 Thread Bo Berglund
On Thu, 16 Jan 2025 14:24:48 -0600, Ryan Carsten Schmidt wrote: >> Sooo strange that it should throw up something in a completely different >> environment than where the trigger was. > >How should subversion detect that it is running in an ssh session rather than >in a local terminal? > >What do

Re: How to restore repositories from backup server

2025-01-16 Thread Ryan Carsten Schmidt
On Jan 16, 2025, at 10:29, Bo Berglund wrote: > > I have now built an RPi4B device using the latest 64 bit PiOS and on that I > get > a version of svn that *does* allow plaintext password cache. But it also came > with a desktop and the first thing that happened when I tried a subversion > comman

Re: How to restore repositories from backup server

2025-01-16 Thread Bo Berglund
On Mon, 13 Jan 2025 17:45:31 +0100, Daniel Sahlberg wrote: >> A separate RPi4 image can be built here and then transferred over via >> Internet >> so they can burn it to a blank SDcard and start the RPi device up there. >> Once on that netywork I can manage it from here via VPN. >> >> Meanwhile I

RE: Re: How to restore repositories from backup server

2025-01-16 Thread Eliseo Diler
On 2025/01/12 23:29:05 Bo Berglund wrote: > On Sun, 12 Jan 2025 18:39:29 +0100, Daniel Sahlberg > wrote: > > >sön 12 jan. 2025 kl. 18:30 skrev Bo Berglund : > > > >> On Sun, 12 Jan 2025 09:53:43 -0600, Ryan Carsten Schmidt > >> wrote: > >> > >> >On Jan 12, 2025, at 01:45, Bo Berglund wrote: > >>

Re: How to restore repositories from backup server

2025-01-13 Thread Daniel Sahlberg
mån 13 jan. 2025 kl. 17:36 skrev Bo Berglund : > On Mon, 13 Jan 2025 07:59:35 +0100, Daniel Sahlberg > wrote: > > >Den mån 13 jan. 2025 kl 00:29 skrev Bo Berglund : > > > >> So in which versions has the plaintext cache been removed? > >> > > > >There is no simple answer to this question. The best

Re: How to restore repositories from backup server

2025-01-13 Thread Bo Berglund
On Mon, 13 Jan 2025 07:59:35 +0100, Daniel Sahlberg wrote: >Den mån 13 jan. 2025 kl 00:29 skrev Bo Berglund : > >> So in which versions has the plaintext cache been removed? >> > >There is no simple answer to this question. The best answer I can give is >that in 1.12 the compile time default was

Re: How to restore repositories from backup server

2025-01-12 Thread Daniel Sahlberg
Den mån 13 jan. 2025 kl 00:29 skrev Bo Berglund : > So in which versions has the plaintext cache been removed? > There is no simple answer to this question. The best answer I can give is that in 1.12 the compile time default was changed [1] to stop writing to the plaintext password store. This wi

Re: How to restore repositories from backup server

2025-01-12 Thread Bo Berglund
On Sun, 12 Jan 2025 18:39:29 +0100, Daniel Sahlberg wrote: >sön 12 jan. 2025 kl. 18:30 skrev Bo Berglund : > >> On Sun, 12 Jan 2025 09:53:43 -0600, Ryan Carsten Schmidt >> wrote: >> >> >On Jan 12, 2025, at 01:45, Bo Berglund wrote: >> >> >> >> I am not specifically interested in a *plaintext* pa

Re: How to restore repositories from backup server

2025-01-12 Thread Daniel Sahlberg
sön 12 jan. 2025 kl. 18:30 skrev Bo Berglund : > On Sun, 12 Jan 2025 09:53:43 -0600, Ryan Carsten Schmidt > wrote: > > >On Jan 12, 2025, at 01:45, Bo Berglund wrote: > >> > >> I am not specifically interested in a *plaintext* password store, what > I want is > >> to store the passwords locally (e

Re: How to restore repositories from backup server

2025-01-12 Thread Bo Berglund
On Sun, 12 Jan 2025 09:53:43 -0600, Ryan Carsten Schmidt wrote: >On Jan 12, 2025, at 01:45, Bo Berglund wrote: >> >> I am not specifically interested in a *plaintext* password store, what I >> want is >> to store the passwords locally (encrypted is fine) and accessible by svn when >> the system

Re: How to restore repositories from backup server

2025-01-12 Thread Ryan Carsten Schmidt
On Jan 12, 2025, at 01:45, Bo Berglund wrote: > > I am not specifically interested in a *plaintext* password store, what I want > is > to store the passwords locally (encrypted is fine) and accessible by svn when > the system does not have a GUI desktop. As far as I know, a plaintext password is

Re: How to restore repositories from backup server

2025-01-11 Thread Bo Berglund
On Sun, 12 Jan 2025 06:52:55 +0100, Daniel Sahlberg wrote: >> But it is not working on the Ubuntu server on the main LAN. >> What can I do in order for the script to run without asking for my >> password? >> Svn version on the linux server is: 1.14.1 >> >> I have not used svn on that machine pre

Re: How to restore repositories from backup server

2025-01-11 Thread Daniel Sahlberg
lör 11 jan. 2025 kl. 23:31 skrev Bo Berglund : > On Thu, 9 Jan 2025 15:20:46 +0100, Johan Corveleyn > wrote: > > >On Thu, Jan 9, 2025 at 1:26?PM Daniel Sahlberg > > wrote: > >... > >> The only solution that will make sure you actually have a working sync > >> is to monitor that the sync script co

Re: How to restore repositories from backup server

2025-01-11 Thread Ryan Carsten Schmidt
On Jan 11, 2025, at 16:31, Bo Berglund wrote: > > (I don't know how to craft a Windows bat file to do the checking above so that > is why I turned to the Linux server...) Doesn't the Windows Subsystem for Linux allow you to run Linux scripts on a Windows machine, if that's what you want to do?

Re: How to restore repositories from backup server

2025-01-11 Thread Bo Berglund
On Thu, 9 Jan 2025 15:20:46 +0100, Johan Corveleyn wrote: >On Thu, Jan 9, 2025 at 1:26?PM Daniel Sahlberg > wrote: >... >> The only solution that will make sure you actually have a working sync >> is to monitor that the sync script completes without errors. Maybe you >> could have a script that l

Re: How to restore repositories from backup server

2025-01-09 Thread Andreas Stieger
On 2025-01-09 15:20, Johan Corveleyn wrote: On Thu, Jan 9, 2025 at 1:26 PM Daniel Sahlberg wrote: ... The only solution that will make sure you actually have a working sync is to monitor that the sync script completes without errors. Maybe you could have a script that looks for the svn:sync

Re: How to restore repositories from backup server

2025-01-09 Thread Johan Corveleyn
On Thu, Jan 9, 2025 at 1:26 PM Daniel Sahlberg wrote: ... > The only solution that will make sure you actually have a working sync is to > monitor that the sync script completes without errors. Maybe you could have a > script that looks for the svn:sync-lock property (something like svn proplist

Re: How to restore repositories from backup server

2025-01-09 Thread Daniel Sahlberg
Den tors 9 jan. 2025 kl 13:09 skrev Bo Berglund : ... > > 4) From then on it took a while but it finally reached rev 4521 and exited > successfully. > > Now my two repositories seem to be exactly the same, which is the whole > purpose. > Good, this is exactly what I was expecting - after an inter

Re: How to restore repositories from backup server

2025-01-09 Thread Bo Berglund
On Wed, 08 Jan 2025 15:02:51 +0100, Bo Berglund wrote: >Where can I find a howto that is used with Apache SVN to do the sync config >properly? So I asked ChatGPT and got a reply which I checked against the svnbook and the state of my existing working repositories. This way I could create a new

Re: How to restore repositories from backup server

2025-01-08 Thread Bo Berglund
On Wed, 08 Jan 2025 12:10:33 +0100, Bo Berglund wrote: >Regarding repository names, are they stored anywhere internally in the repo or >is it just the top level directory name? > >If it is "just a name" then I should be able to rename the existing mirror dir >and then create a new "pc" repo desti

Re: How to restore repositories from backup server

2025-01-08 Thread Bo Berglund
On Wed, 8 Jan 2025 11:16:08 +0100, Daniel Sahlberg wrote: >Den ons 8 jan. 2025 kl 10:59 skrev Bo Berglund : > >> If I create a new empty target repository on the mirror server and >> configure it >> to be used for syncing, then how long will it take to do the initial sync? >> > >> The problem is

Re: How to restore repositories from backup server

2025-01-08 Thread Daniel Sahlberg
Den ons 8 jan. 2025 kl 10:59 skrev Bo Berglund : > If I create a new empty target repository on the mirror server and > configure it > to be used for syncing, then how long will it take to do the initial sync? > > The problem is that it is VERY big (14 GB) and the server and mirror are > separate

Re: How to restore repositories from backup server

2025-01-08 Thread Bo Berglund
On Tue, 7 Jan 2025 22:20:59 +0100, Daniel Sahlberg wrote: >> In the batch file the command is created at the start and then used for all >> repos going down the file. Here is how it is defined (again wrapped lines): >> >> rem If a repository is not synced due to a lock problem, then use >> --stea

Re: How to restore repositories from backup server

2025-01-07 Thread Daniel Sahlberg
Den tis 7 jan. 2025 kl 22:08 skrev Bo Berglund : > > This is how the execution went (long lines are wrapped by my newsreader): > > H:\>"C:\Program Files\VisualSVN Server\bin\svnsync.exe" synchronize > --sync-username syncuser https://svn.mydomain.com/svn/pc > https://agiengineering/svn/pc > > Fail

Re: How to restore repositories from backup server

2025-01-07 Thread Bo Berglund
On Tue, 07 Jan 2025 22:08:33 +0100, Bo Berglund wrote: >In the batch file the command is created at the start and then used for all >repos going down the file. Here is how it is defined (again wrapped lines): > >rem If a repository is not synced due to a lock problem, then use --steal-lock >in a

Re: How to restore repositories from backup server

2025-01-07 Thread Bo Berglund
On Tue, 7 Jan 2025 04:22:43 -0600, Ryan Carsten Schmidt wrote: >On Jan 7, 2025, at 03:48, Bo Berglund wrote: >> >> It seems like the sync was not really done for this repo for a long time even >> though the nightly sync operation actually was working for all the other >> repos >> where the mirr

Re: How to restore repositories from backup server

2025-01-07 Thread Johan Corveleyn
On Tue, Jan 7, 2025 at 10:48 AM Bo Berglund wrote: ... > I have also checked the commit emails for this repo and those show another set > of commits done for revs 4519 to 4528 between 2024-08-14-2024-12-01, which is > where the mirror should be now. But isn't > > > Command svn info on the *mai

Re: How to restore repositories from backup server

2025-01-07 Thread Ryan Carsten Schmidt
On Jan 7, 2025, at 03:48, Bo Berglund wrote: > > It seems like the sync was not really done for this repo for a long time even > though the nightly sync operation actually was working for all the other repos > where the mirror contains commits done up to the server crash... Indeed! > And it is

Re: How to restore repositories from backup server

2025-01-07 Thread Bo Berglund
On Sun, 29 Dec 2024 00:49:21 +0100, Bo Berglund wrote: >Since I did not succeed in getting this to work with svnrload and a >StackOverflow search suggested I should use svnadmin instead: > >I reverted to svnadmin and look what happened: > >svnadmin load E:\SVNREPOS\cmpcpy < dump_cmp ><<< Started

Re: How to restore repositories from backup server

2024-12-28 Thread Bo Berglund
On Sat, 28 Dec 2024 18:07:06 +0100, Bo Berglund wrote: >>> In that case what would be the best approach to copy the repository? >> >> A repository is just a directory of files on disk. Since nothing should be >> accessing the July backup since you've disabled the server processes, a >> simple

Re: How to restore repositories from backup server

2024-12-28 Thread Ryan Carsten Schmidt
On Dec 28, 2024, at 11:07, Bo Berglund wrote:(NOTE:I had to open the html attachment externally to see this reply, my text onlynewsreader did not show it, just as an attached fileSo I added its text verbatim here for future readers of the group archives.)Apologies for the HTML mail. I am writin

Re: How to restore repositories from backup server

2024-12-28 Thread Bo Berglund
On Sat, 28 Dec 2024 09:02:16 -0600, Ryan Carsten Schmidt wrote: (NOTE: I had to open the html attachment externally to see this reply, my text only newsreader did not show it, just as an attached file So I added its text verbatim here for future readers of the group archives.) Thanks for

Re: How to restore repositories from backup server

2024-12-28 Thread Bo Berglund
On Sat, 28 Dec 2024 15:52:24 +0100, Daniel Sahlberg wrote: >lör 28 dec. 2024 kl. 15:45 skrev Bo Berglund : > >> On Sat, 28 Dec 2024 12:13:24 +0100, Bo Berglund >> wrote: >> >> >If the dump file I have for the original repository *can* be used on the >> clone >> >instead with the suggested comman

Re: How to restore repositories from backup server

2024-12-28 Thread Ryan Carsten Schmidt
On Dec 28, 2024, at 05:14, Bo Berglund wrote:You could do a trial run on a local machine instead of the server.I can't do that since I don't have another Windows machine with a Subversionserver...All my other devices except my laptop are Linux boxes.Your Windows laptop is sufficient, if it has enou

Re: How to restore repositories from backup server

2024-12-28 Thread Daniel Sahlberg
lör 28 dec. 2024 kl. 15:45 skrev Bo Berglund : > On Sat, 28 Dec 2024 12:13:24 +0100, Bo Berglund > wrote: > > >If the dump file I have for the original repository *can* be used on the > clone > >instead with the suggested commands in a cmd window then I can do a real > test > >before I touch the

Re: How to restore repositories from backup server

2024-12-28 Thread Bo Berglund
On Sat, 28 Dec 2024 12:13:24 +0100, Bo Berglund wrote: >If the dump file I have for the original repository *can* be used on the clone >instead with the suggested commands in a cmd window then I can do a real test >before I touch the actual repositories... > >In that case what would be the best a

Re: How to restore repositories from backup server

2024-12-28 Thread Bo Berglund
On Sat, 28 Dec 2024 10:34:40 +0200, "Stanimir Stamenkov via users" wrote: >Fri, 27 Dec 2024 16:44:05 +0100, /Bo Berglund/: > >> So I looked in the RedBean "manual" and found this: >> >> $ svnadmin load /var/svn/restored < repos-backup >> >> <<< Started new txn, based on original revision 1 >>

Re: How to restore repositories from backup server

2024-12-28 Thread Bo Berglund
On Fri, 27 Dec 2024 15:52:58 -0600, Ryan Carsten Schmidt wrote: >On Dec 27, 2024, at 15:44, Bo Berglund wrote: >> >> Well there are 11 repositories totalling 18.8 GB in size >> So a full backup is not a simple task, also regarding disk space on the >> virtualized server. Don't know how much disk

Re: How to restore repositories from backup server

2024-12-28 Thread Stanimir Stamenkov via users
Fri, 27 Dec 2024 16:44:05 +0100, /Bo Berglund/: So I looked in the RedBean "manual" and found this: $ svnadmin load /var/svn/restored < repos-backup <<< Started new txn, based on original revision 1 * adding path : test ... done. * adding path : test/a ... done. where they place t

Re: How to restore repositories from backup server

2024-12-27 Thread Ryan Carsten Schmidt
On Dec 27, 2024, at 15:44, Bo Berglund wrote: > > Well there are 11 repositories totalling 18.8 GB in size > So a full backup is not a simple task, also regarding disk space on the > virtualized server. Don't know how much disk it actually has. You could do a trial run on a local machine instead

Re: How to restore repositories from backup server

2024-12-27 Thread Bo Berglund
On Fri, 27 Dec 2024 21:31:05 +0100, Daniel Sahlberg wrote: >> svnadmin load E:\SVNREPOS\repositoryname < dumpfilename >> >> I don't want to do this erroneously and screw up the repositories > > >Do a backup and just try? Well there are 11 repositories totalling 18.8 GB in size So a full bac

Re: How to restore repositories from backup server

2024-12-27 Thread Daniel Sahlberg
fre 27 dec. 2024 kl. 16:46 skrev Bo Berglund : > On Mon, 23 Dec 2024 14:13:57 +0100, Timofei Zhakov > wrote: > > >> 2) Is there a load command version where one specifies the file other > than > >> piping a cat to it? What happens with binary files in this cat > operation? > >> > > > >Yes, there

Re: How to restore repositories from backup server

2024-12-27 Thread Bo Berglund
On Fri, 27 Dec 2024 12:36:14 -0600, Ryan Carsten Schmidt wrote: >On Dec 27, 2024, at 12:02, Bo Berglund wrote: >> >> Notice the absence of the -F argument on our actual server! :( > >The -F flag was added to svnrdump in Subversion 1.12.0: > >I guess your server has an older version. > I think i

Re: How to restore repositories from backup server

2024-12-27 Thread Ryan Carsten Schmidt
On Dec 27, 2024, at 12:02, Bo Berglund wrote:Notice the absence of the -F argument on our actual server! :(The -F flag was added to svnrdump in Subversion 1.12.0:Let 'svnrdump' read/write a file instead of stdin/stdout. · apache/subversion@c4c996dgithub.comI guess your server has an older version. 

Re: How to restore repositories from backup server

2024-12-27 Thread Bo Berglund
On Fri, 27 Dec 2024 16:44:05 +0100, Bo Berglund wrote: >So it seems like this svnadmin does not actually have an -F argument... > >Do I really have to *pipe* a cat of the dumpfile into svnadmin? >In that case what is the Windows version of cat? > > >So I looked in the RedBean "manual" and found t

Re: How to restore repositories from backup server

2024-12-27 Thread Bo Berglund
On Mon, 23 Dec 2024 14:13:57 +0100, Timofei Zhakov wrote: >> 2) Is there a load command version where one specifies the file other than >> piping a cat to it? What happens with binary files in this cat operation? >> > >Yes, there is an option to pass the path to the dumpfile instead: > > -F [--f

Re: How to restore repositories from backup server

2024-12-23 Thread Timofei Zhakov
(Answering the questions inline below) On Mon, Dec 23, 2024 at 9:26 AM Bo Berglund wrote: > On Sun, 22 Dec 2024 17:22:49 +0100, Daniel Sahlberg > wrote: > > >dsg@daniel-23:~/temp$ svn info file://`pwd`/repo_mirror > >Path: repo_mirror > >URL: file:///home/dsg/temp/repo_mirror > >Relative URL: ^

Re: How to restore repositories from backup server

2024-12-23 Thread Bo Berglund
On Sun, 22 Dec 2024 17:22:49 +0100, Daniel Sahlberg wrote: >dsg@daniel-23:~/temp$ svn info file://`pwd`/repo_mirror >Path: repo_mirror >URL: file:///home/dsg/temp/repo_mirror >Relative URL: ^/ >Repository Root: file:///home/dsg/temp/repo_mirror >Repository UUID: 2a340f81-40ba-467e-9d23-dc1940d0c4

Re: How to restore repositories from backup server

2024-12-22 Thread Daniel Sahlberg
Den sön 22 dec. 2024 kl 09:33 skrev Bo Berglund : > Background: > --- > In 2018 we migrated from CVSNT to VisualSvn and at the time I ran the > conversion, which produced a mirror repository from CVS but in subversion. > > This worked fine and we could use that new repository successfully

How to restore repositories from backup server

2024-12-22 Thread Bo Berglund
Background: --- In 2018 we migrated from CVSNT to VisualSvn and at the time I ran the conversion, which produced a mirror repository from CVS but in subversion. This worked fine and we could use that new repository successfully from then on. Then about a year later I set up a backup schem