Login | Register
My pages Projects Community openCollabNet

Discussions > users > Re: Question on revert

fsvs
Discussion topic

Back to topic list

Re: Question on revert

Author =?UTF-8?B?U2ltb24gU3Byw7xua2Vy?= <fsvs at semjon dot de>
Full name =?UTF-8?B?U2ltb24gU3Byw7xua2Vy?= <fsvs at semjon dot de>
Date 2007-07-16 18:37:14 PDT
Message Hello Phil,

thanks for your quick and extensive answer (as always)!

Philipp Marek wrote:
> Hello Simon!
>
>
> On Montag, 16. Juli 2007 Simon Spr√ľnker wrote:
>> I ran into a problem using the recursive revert using fsvs 1.1.6 (did
>> not try with older versions):
>>
>> I am versioning / on a machine. I uninstalled htop
> but didn't commit, I think?

Correct.

>> and deleted
>> /var/spool/fsvs and /etc/fsvs.
> Why did you that? To simulate a catastrophic recovery?

Exactly.

> What does "fsvs st" say, just after the "sync-repos"?
> Please try a "fsvs revert -R -C" - the "-C" tells fsvs to check *all*
> directories for missing elements. The sync-repos is not perfect yet, in that
> it (has to) take the current timestamps ... But there I could verify
> something; that's possibly fixed by taking the ctime as a hint only.

[HEAD]vm-one:/# fsvs sync-repos
...
[HEAD]vm-one:/# fsvs st
.m.? 0 ./var/lib/apt/lists/lock
.m.? 6822306 ./var/cache/apt/pkgcache.bin
D... 0 ./usr/bin/htop
D... 0 ./usr/share/man/man1/htop.1.gz
D... dir ./usr/share/doc/htop
D... 0 ./usr/share/doc/htop/AUTHORS
D... 0 ./usr/share/doc/htop​/changelog.gz
D... 0 ./usr/share/doc/htop​/changelog.Debian.gz​
D... 0 ./usr/share/doc/htop/copyright
D... 0 ./usr/share/doc/htop/README
D... 0 ./usr/share/pixmaps/htop.png
D... 0 ./var/lib/dpkg/info/​htop.postinst
D... 0 ./var/lib/dpkg/info/​htop.md5sums
D... 0 ./usr/share/menu/htop
.m.? 4096 ./var/lib/urandom/random-seed
.m.? 218355 ./var/lib/dpkg/available-old
.m.? 218355 ./var/lib/dpkg/available
.m.? 0 ./var/lib/dpkg/info/htop.list
.m.? 240354 ./var/lib/dpkg/status
.m.? 0 ./var/lock/aptitude
.m.? 240325 ./var/lib/dpkg/status-old
..C. dir ./usr/share/pixmaps
.m.? 0 ./var/lib/dpkg/lock
..C. dir ./usr/share/menu
..C. dir ./usr/bin
..C. dir ./usr/share/man/man1
.m.? 1668428 ./var/lib/aptitude/p​kgstates.old
.m.? 1668428 ./var/lib/aptitude/pkgstates
.m.? 19463 ./var/lib/exim4/conf​ig.autogenerated
.m.? 4 ./var/lib/nfs/state
.m.? 45 ./etc/resolv.conf
.m.? 16 ./etc/network/run/ifstate
D... 0 ./usr/share/applicat​ions/htop.desktop
.m.? 349 ./etc/mtab
..C. dir ./usr/share/applications
..C. dir ./var/lib/dpkg/info
..C. dir ./usr/share/doc
.m.? 0 ./root/.aptitude/config
.m.? 0 ./lib/init/rw/.ramfs
.m.. dir .

[HEAD]vm-one:/# fsvs revert -R -C /
Reverting to revision 5:
.m.. 0 ./var/lib/apt/lists/lock
.mC. 6822306 ./var/cache/apt/pkgcache.bin
D... 73252 ./usr/bin/htop
D... 1707 ./usr/share/man/man1/htop.1.gz

Warning [id=chown-other, action=stop]:
Cannot chown "./usr/share/doc/htop" to 0:0



An error occurred: No such file or directory (2)
   in up__set_meta_data

If you need anything else, I will be happy to provide it.

>> You may ask, why I did the above steps. I did not find anything in docs
>> on how to achieve the following use case: You version a machine, it
>> breaks, you install a minimial system and update to the latest revision
>> in the repository. I thought the above steps simulate this process.
> Well, I'd have recommended doing something like
> - Booting with a knoppix or similar
> - Make fsvs available (will get easier as soon as distributions include it)
> - Go to your harddisk-root (here taken as /mnt)
> cd /mnt
> - Do
> fsvs export $URL
> that restores your machine (or at least should); optionally use -rREV.
> - Call "lilo", "grub-install" or whatever
> - Reboot into the machine.
> - Now all you have to do is restore the FSVS' filelist:
> cd /
> fsvs sync-repos

I am not sure, if I understood you correctly: Should the way I tried
work? I would like that, because it means less work and that I don't
need physical access to the machine that broke, once the minimal system
is running :)

Best Regards,
Simon

« Previous message in topic | 3 of 8 | Next message in topic »

Messages

Show all messages in topic

Question on revert =?UTF-8?B?U2ltb24gU3Byw7xua2Vy?= <fsvs at semjon dot de> =?UTF-8?B?U2ltb24gU3Byw7xua2Vy?= <fsvs at semjon dot de> 2007-07-15 16:42:41 PDT
     Re: Question on revert pmarek P.Marek 2007-07-16 04:33:11 PDT
         Re: Question on revert =?UTF-8?B?U2ltb24gU3Byw7xua2Vy?= <fsvs at semjon dot de> =?UTF-8?B?U2ltb24gU3Byw7xua2Vy?= <fsvs at semjon dot de> 2007-07-16 18:37:14 PDT
             Re: Question on revert pmarek P.Marek 2007-07-17 01:32:17 PDT
                 Re: Question on revert =?UTF-8?B?U2ltb24gU3Byw7xua2Vy?= <fsvs at semjon dot de> =?UTF-8?B?U2ltb24gU3Byw7xua2Vy?= <fsvs at semjon dot de> 2007-07-21 13:44:07 PDT
     Re: Question on revert pmarek P.Marek 2007-07-18 09:30:42 PDT
     Re: Question on revert =?UTF-8?B?U2ltb24gU3Byw7xua2Vy?= <fsvs at semjon dot de> =?UTF-8?B?U2ltb24gU3Byw7xua2Vy?= <fsvs at semjon dot de> 2007-07-21 14:46:02 PDT
         Re: Question on revert pmarek P.Marek 2007-07-23 02:14:58 PDT
Messages per page: