Login | Register
My pages Projects Community openCollabNet

Discussions > users > Re: fsvs local changed by accident

fsvs
Discussion topic

Back to topic list

Re: fsvs local changed by accident

Author pmarek
Full name P.Marek
Date 2010-08-16 05:10:42 PDT
Message Hello Steve!

> we have the following setup in the field:
>
> windows server which sync to a linux server running fsvs. When setting up
> the server I did an fsvs check out using the root user (stupid me) therefore
> all files checked out have rootas user.
>
> Now the smb running on that server did a sync and changed the ownership to
> nobody. The files are the same. I found that the copy script not only looks
> at the file itself but also at the creation time.
>
> Is there a way I can revert to the original files, without having to
> download the original file from the server?
If *only* the meta-data has changed (mtime, owner, group, or mode),
FSVS should see this, and show the files with only meta-data changes
(so no "C"):

    root@cacao:/etc # ls -la passwd ; fsvs st -v passwd
    -rw-r--r-- 1 root root 1641 2. Aug 08:57 passwd
    ...... 1641 passwd
    root@cacao:/etc # touch passwd ; chown 1.2 passwd ; fsvs st -v passwd
    .tp... 1641 passwd

Furthermore a "revert" will use the local information to fix the meta-data:

    root@cacao:/etc # fsvs revert passwd ; ls -la passwd
    Reverting to revision 26:
    .m.. 1641 passwd
    -rw-r--r-- 1 root root 1641 2. Aug 08:57 passwd

(This shows that meta-data was fixed, ie. the previous status.)


> Second Q:
>
> can I move a local copy from one client to another client? I mean, can I
> copy the /etc/fsvs and /var/spool/fsvs folder + the data from 1 client to
> another? We are talking over +100 GB of data.
Well, copying /etc/fsvs and /var/spool/fsvs should work, too.
There's nothing host-specific there (at least if BDB is byte-order compatible
etc.)

The "normal", suggested way would be to copy the data with whatever means
(tape, harddisk, rsync, scp, tar | netcat, etc.), and doing
    fsvs urls ....
    fsvs sync-repos

to get a clean filelist in the new working copy.

This is mostly time-bound by the number of files, as FSVS unfortunately
has to query the repository in two ways to get the filesize *and* the original
meta-data.


Regards,

Phil


--
Versioning your /etc, /home or even your whole installation?
             Try fsvs (fsvs.tigris.org)!

« Previous message in topic | 2 of 6 | Next message in topic »

Messages

Show all messages in topic

fsvs local changed by accident cobolt steve caster 2010-08-16 04:28:17 PDT
     Re: fsvs local changed by accident pmarek P.Marek 2010-08-16 05:10:42 PDT
         Re: fsvs local changed by accident cobolt steve caster 2010-08-16 05:17:25 PDT
             Re: fsvs local changed by accident pmarek P.Marek 2010-08-16 06:14:14 PDT
                 file permission on checkout cobolt steve caster 2010-08-16 10:38:26 PDT
                     Re: file permission on checkout pmarek P.Marek 2010-08-16 12:09:04 PDT
Messages per page: