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, 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).
> 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.
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.
> > 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.
Regards,
Maurice.
--
Maurice van der Pot
Gentoo Linux Developer [EMAIL PROTECTED] http://www.gentoo.org
Gnome Planner Developer [EMAIL PROTECTED] http://live.gnome.org/Planner
pgpJRhvCcs20E.pgp
Description: PGP signature
