On Tuesday 15 July 2008 Maurice van der Pot wrote:
> On Tue, Jul 15, 2008 at 03:51:10PM +0200, Philipp Marek wrote:
> > Hello Maurice,
> >
> > > On Sat, Jul 12, 2008 at 02:35:32PM +0200, Philipp Marek wrote:
> > >> And the ignore patterns are versioned - as soon as your
> > >> $FSVS_CONF/$WC_DIR/Ign file is versioned, too (for /etc as WC and
> > >> default-config you'll get that automatically - eg.
> > >> "/etc/fsvs/182f153bd94803955c2043e6f2581d5d/Ign")
> > >
> > > Won't I have a problem if I check out someplace else?
> > > If I add $FSVS_CONF/$WC_DIR/Ign on host A and check out on host B,
> > > won't the Ign file be under the wrong $WC_DIR?
> >
> > Yes, if $FSVS_CONF is different it won't match.
>
> I plan to use the same value for FSVS_CONF everywhere (${HOME}/.fsvs),
> but I mean that the WC_DIR (182f153bd94803955c2043e6f2581d5d in your
> example) changes. It looks like a hash and although I don't know what is
> used to create it,
The hash is simply MD5(wcroot) - so /etc will be
182f153bd94803955c2043e6f2581d5d on *every* machine.
But FSVS_CONF will be different in your example - because $HOME differs, or am
I wrong here?
> it obviously will have to be different for a second
> checkout on the same machine with the same value for FSVS_CONF (not that
> that is a use-case for me).
Of course - different WC-roots get different hashes.
> > But do you use anything else than /etc/fsvs? Oh yes, you said you're
> > versioning your /home. Do you commit as user, or are these backups
> > started per cron as root? You could try to do "chown <user>
> > /etc/fsvs/<wc-dir>", and use a per-user WAA.
>
> I'm using fsvs as a normal user with FSVS_CONF=${HOME}/.fsvs and
> FSVS_WAA=${FSVS_CONF}/waa. I'm using this with just this one account.
IIUYC, you have just one account *per machine*, right?
> I only add 'important' configuration files to version management and
> commit whenever I have changed one of them. I add pretty much everything
> else in my homedir to the ignore list.
>
> I want to use this to easily check out the set of configuration files to
> my homedir on other machines.
And on these other machines you have a different $HOME?
> > > How can I version the ignore list in such a way that when I check out
> > > on a different machine the ignore list still works?
> > >
> > > The best way I can come up with now is to hard-link it to a location
> > > under the repository root and add that file to version control,
> > > although that will be a manual action that has to be repeated for each
> > > check-out.
> >
> > I'd try to use a symlink rather than a hardlink.
>
> A symlink in ${FSVS_CONF}/${WC_DIR}.. I'll see if that works.
> > I can't quite follow your setup or requirements - but might it be an idea
> > to use a dummy "ignore" file that has an update- and commit-pipe set, eg.
> > to "cat $FSVS_CONF/xx/Ign"?
>
> That's also an option. Will keep that one in mind.
>
> In either case, setting this up will still depend on the actual WC_DIR.
> I'm still hoping the hash only depends on the directory where the
> checkout is done.
Yes, it does.
And now I may have another way for your setup - use the softroot option.
Ie. set FSVS_SOFTROOT=$HOME FSVS_CONF=/.fsvs FSVS_WAA=$FSVS_CONF/waa, and tell
FSVS to keep $HOME versioned - that will have the same hash everywhere
(6666cd76f96956469e7be39d750cc7d9), and the machine-dependent $HOME is done
via the softroot.
Score +1 for the flexibility of FSVS ;-)
Regards,
Phil
--
Versioning your /etc, /home or even your whole installation?
Try fsvs (fsvs.tigris.org)!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]