Re: [bu-users] trivial restore test failing
Status: Beta
Brought to you by:
vstemen
|
From: Vincent S. <bu...@hi...> - 2009-01-19 22:53:21
|
On Mon, Jan 19, 2009 at 11:29:36AM -0800, jack byers wrote: > I havent used bu now for more than a year or two > I want to test backing up a single dir with a single file to /backupbu > > and then to test restoring that backed up copy to /restorebu > > the backup part goes as expected, > but the restore part fails-- "No new or changed files to back up" > > I am probably misusing the bu tool, or doing something really stupid. > > [root@bootp byers]# mkdir /backupbu > [root@bootp byers]# mkdir /restorebu > [root@bootp byers]# bu -d /backupbu drhmail09 > > Incremental: on > Backup directory: /backupbu > > /home/byers/drhmail09 -> /backupbu/home/byers/drhmail09 > /home/byers/drhmail09/rhjan09 -> /backupbu/home/byers/drhmail09/rhjan09 > > > > ok for the backup > > now try to restore from this /backupbu to /restorebu also using bu: > > [root@bootp byers]# pwd > /backupbu/home/byers > [root@bootp byers]# bu -d /restorebu drhmail09 > > Incremental: on > Backup directory: /restorebu > > No new or changed files to back up > > [root@bootp byers]# > > same response if try from the top: > root@bootp restorebu]# cd .. > [root@bootp /]# bu -d /restorebu /backupbu > > Incremental: on > Backup directory: /restorebu > > No new or changed files to back up > > [root@bootp /]# > > > > I must be missing something really obvious > any help much appreciated > Jack Hi Jack. Two things. First, what version of bu are you running? I just tried it with "3.4 beta" and it worked. I reproduced the same scenario you gave me, even with the same file names. Second, I suspect you are going to get the results you are expecting, when trying to restore in this way. If you are expecting to restore the files back to their original locations under /restorebu where the directory tree matches /backupbu, doing it with bu will not work. Remember, bu reproduces the entire source path to each file underneath the destination directory. So going the opposite direction, you get: $ pwd /backupbu/u1/home/vince $ bu -d /restorebu drhmail09 Incremental: on Backup directory: /restorebu /backupbu/u1/home/vince/drhmail09 -> /restorebu/backupbu/u1/home/vince/drhmail09 /backupbu/u1/home/vince/drhmail09/rhjan09 -> /restorebu/backupbu/u1/home/vince/drhmail09/rhjan09 So the backup directory, /backupbu, gets prepended to the file paths inside /restorebu, since that is where the files are being backed up from, rather than going in /restorebu/u1/home/vince/. If that is OK for you then this should work, but I usually just use cp, tar, cpio, or pax to restore files from the backup directory since I have never added actual restore features to bu yet. |