Re: How to restore repositories from backup server

"Stanimir Stamenkov via users" <[email protected]> Sat, 28 Dec 2024 10:34:40 +0200
Newsgroups gmane.comp.version-control.subversion.user
Message-ID <[email protected]>
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 the dumpfile (repos-backup) last with a < char in front of it.
> Does this work on Windows? If so is this correct for this job:
> 
> svnadmin load E:\SVNREPOS\repositoryname < dumpfilename
> 
> I don't want to do this erroneously and screw up the repositories....

Redirection should just work with cmd, for example:

     > more /?
     Displays output one screen at a time.

     MORE [/E [/C] [/P] [/S] [/Tn] [+n]] < [drive:][path]filename
     command-name | MORE [/E [/C] [/P] [/S] [/Tn] [+n]]
     MORE /E [/C] [/P] [/S] [/Tn] [+n] [files]
     ...

     > more < samplefile
     ...

-- 
Stanimir