Login | Register
My pages Projects Community openCollabNet

Discussions > users > Re: fsvs bails out

fsvs
Discussion topic

Hide all messages in topic

All messages in topic

Re: fsvs bails out

Author pmarek
Full name P.Marek
Date 2006-03-29 08:16:22 PST
Message On Monday 27 March 2006 20:38 Gunter Ohrner wrote:
> > If I understand you correctly:
> > - you want to retrieve the current status off B?
> > $ fsvs init svn://B/...
> > $ fsvs sync-repos
>
> These commands are entered on B?
>
> > - you want to move to A
> > $ fsvs init svn://A/...
> > - get updates
> > $ fsvs update
>
> And these are entered on A?
>
> In this case it looks promising - I want to initialize the repository,
> which will reside on backup server B, using the backup (of A) already
> present on B. After that I want to "connect" machine A (the production
> system) to this repository, and start comitting to the repository, not
> updating.
>
> Would this work?
So I seem to have misunderstood you.

Another try:
    B: $ svnadmin create /path/to/repos
Note: fsfs as backend can be *awfully* slow, depending on filesystem.
I'd recommend bdb for ext2 and some others.
Turning on directory indexing on ext3 helps a lot, but fsfs is still 3x slower
than bdb.
(Although I'm not sure if I'd want to use bdb ... ;-/ )
    B: $ cd /backup/dir/of/A
    B: $ fsvs init file:///path/to/repos
    B: $ fsvs commit
Then the new repository should have the current backup in it.

    A: $ cd /
    A: $ fsvs init svn://A/path/to/repos
or svn+ssh, or http, or whatever ...
    A: $ fsvs sync-repos
and from now on (eg. from cron)
    A: $ fsvs commit / -m 'automatic backup'


That should do the trick.


Regards,

Phil

Re: fsvs bails out

Author pmarek
Full name P.Marek
Date 2006-03-29 08:09:28 PST
Message On Monday 27 March 2006 21:43 Gunter Ohrner wrote:
> Mh, another thought - I'm currently already using your svn meta data patch
> to store my home directory and to sync it between my desktop and my
> laptop. (Besides having a versioned backup.)
>
> Would it somehow be possible to seamlyessly switch from svn meta-data to
> fsvs by nuking the .svn-directories and doing "fsvs init"? Will fsvs
> choke on the existing files as svn does, or is it designed to handle this
> case? (That's probably similar to my server A / B backup question.)
The simplest thing would probably be to delete the .svn directories, do a
sync-repos, and commit afterwards as usual.

You could also just ignore the .svn-directories, but that wouldn't help you
much - a single commit through fsvs, and svn would have to do an update to
avoid conflicts ...

So yes, it should work.

Re: fsvs bails out

Author Gunter Ohrner <G dot Ohrner at post dot rwth-aachen dot de>
Full name Gunter Ohrner <G dot Ohrner at post dot rwth-aachen dot de>
Date 2006-03-27 11:43:44 PST
Message Am Montag, 27. März 2006 09:25 schrieb Ph. Marek:
> If I understand you correctly:
> - you want to retrieve the current status off B?
> $ fsvs init svn://B/...
> $ fsvs sync-repos
> - you want to move to A
> $ fsvs init svn://A/...
> - get updates
> $ fsvs update

Mh, another thought - I'm currently already using your svn meta data patch
to store my home directory and to sync it between my desktop and my
laptop. (Besides having a versioned backup.)

Would it somehow be possible to seamlyessly switch from svn meta-data to
fsvs by nuking the .svn-directories and doing "fsvs init"? Will fsvs
choke on the existing files as svn does, or is it designed to handle this
case? (That's probably similar to my server A / B backup question.)

Greetings,

  Gunter

--
*** Powered by AudioScrobbler --> http://www.last.fm/u​ser/Interneci/ ***
20:44 | Erben der Schöpfung - Doch sie wartet vergebens...
20:38 | Erben der Schöpfung - Alone
20:31 | Erben der Schöpfung - Ade
20:25 | Erben der Schöpfung - My Star
*** PGP-Verschlüsselung bei eMails erwünscht :-) *** PGP: 0x1128F25F ***
Attachments

Re: fsvs bails out

Author Gunter Ohrner <G dot Ohrner at post dot rwth-aachen dot de>
Full name Gunter Ohrner <G dot Ohrner at post dot rwth-aachen dot de>
Date 2006-03-27 10:38:56 PST
Message Am Montag, 27. März 2006 09:25 schrieb Ph. Marek:
> > successful: (If this is off topic here and should move to the user's
> > list, please say so.)
> Yes, we're moving to users@.

Ok, I'm not subscribed there, so please always CC me.

> If I understand you correctly:
> - you want to retrieve the current status off B?
> $ fsvs init svn://B/...
> $ fsvs sync-repos

These commands are entered on B?

> - you want to move to A
> $ fsvs init svn://A/...
> - get updates
> $ fsvs update

And these are entered on A?

In this case it looks promising - I want to initialize the repository,
which will reside on backup server B, using the backup (of A) already
present on B. After that I want to "connect" machine A (the production
system) to this repository, and start comitting to the repository, not
updating.

Would this work?

Greetings,

  Gunter

--
*** Powered by AudioScrobbler --> http://www.last.fm/u​ser/Interneci/ ***
20:13 | Erben der Schöpfung - Eine Rose für den Abschied
20:08 | Erben der Schöpfung - By My Side
20:03 | Erben der Schöpfung - Sleep and Death
19:57 | Erben der Schöpfung - Elis
*** PGP-Verschlüsselung bei eMails erwünscht :-) *** PGP: 0x1128F25F ***
Attachments

Re: fsvs bails out

Author pmarek
Full name P.Marek
Date 2006-03-26 23:25:42 PST
Message > One question concerning my possible use case if the tests are successful:
> (If this is off topic here and should move to the user's list, please say
> so.)
Yes, we're moving to users@.

> I have a production system A, a backup server B which currently always has
> a few hours old snapshot image of A's file systems. Both system are
> connected by a relatively thin pipe.
>
> Is there any way to seed fsvs using this constellation, so fsvs can import
> the backup snapshot on B so that A can immediately start pushing updates
> to it? Or is the only way to make a full import from A to B during which
> all files will have to be transmitted?
If I understand you correctly:
- you want to retrieve the current status off B?
  $ fsvs init svn://B/...
  $ fsvs sync-repos
- you want to move to A
  $ fsvs init svn://A/...
- get updates
  $ fsvs update

Is that what you want? I'm not sure about that.


Regards,

Phil
Messages per page: