Re: [bu-users] bu installed as user, running as root..
Status: Beta
Brought to you by:
vstemen
|
From: Vincent S. <bu...@hi...> - 2009-02-25 03:25:00
|
On Tue, Feb 24, 2009 at 10:17:13AM -0800, jack byers wrote:
> I am experiencing strange bu results,
> most likely bc of how I am running bu.
> Installed as user byers
> [byers@bootp ~]$ echo $PATH
> /usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/byers/pkg/bin:/home/byers/bin:/home/byers/pkg/bin
>
> running bu as root, but root via (su) not via (su -)
> bc I didnt change root's path
> In the past I thot I had run su as root exactly this way without problems
> And I haven't changed bu config as far as I can recall.
>
> Now in /rh8 which contains lib, var ... from an old kubuntu
> test backing up lib to an external usb disk
> su
> # bu -d /media/disk-1/bukubuinst lib
>
> copies a link, but not the accompanying file in this same lib dir
>
> eg
> ]# cd /rh8
>
> [root@bootp rh8]# cd lib
> [root@bootp lib]# pwd
> /rh8/lib
> [root@bootp lib]# ls -l *kid*
> lrwxrwxrwx 1 root root 15 Dec 27 2006 libblkid.so.1 -> libblkid.so.1.0
> -rw-r--r-- 1 root root 27656 May 12 2006 libblkid.so.1.0
>
> both a link file and the file itself are seen
>
>
> the result on usb disk:
> root@bootp lib]# pwd
> /media/disk-1/bukubuinst/rh8/lib
> [root@bootp lib]# ls -l *kid*
> lrwxrwxrwx 1 root root 15 Feb 24 09:04 libblkid.so.1 -> libblkid.so.1.0
> [root@bootp lib]#
> only the link
>
> and this is same for many other links,files inside /rh8/lib
>
> advice? am I just doing something plain wrong
> by not having the bu /pkg in root's path?
>
>
> Jack
I don't see anything you did wrong. In addition to bu, make sure "pax"
and "perl" are in the command path. I would think it would error and
abort, if not.
Unless your *pax* is somehow broken, since bu relies on it.
I just tested on BSD, with
su
mkdir /butest
cd /usr
bu -d /butest lib
And it worked fine. Does the output on the screen show the links being backed
up? Or did you check the log (usually in /var/log/bu/)?
If you don't get anywhere, try rebooting. It is Linux :-). I know that
sounds like a joke but actually, often when somebody reports some weird
behaviour with bu that nobody else has experienced, it has ended up
being some random Linux anomoly.
Another thing you could do is try "rbu" to see if you get a similar
result. rbu is the new rsync based bu that is intended to eventually
replace bu.
http://hightek.org/bu/rbu-20080528
You have to have rsync installed. If you try it, the command line is
slightely different.
rbu d=/media/disk-1/bukubuinst lib
rbu does not have include/exclude lists, etc., yet. I have focused
first on features that bu does not have.
|