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"):
r...@cacao:/etc # ls -la passwd ; fsvs st -v passwd
-rw-r--r-- 1 root root 1641 2. Aug 08:57 passwd
...... 1641 passwd
r...@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:
r...@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)!
------------------------------------------------------
http://fsvs.tigris.org/ds/viewMessage.do?dsForumId=3928&dsMessageId=2647447
To unsubscribe from this discussion, e-mail:
[[email protected]].