Koozali.org: home of the SME Server

restore not complete

richard

restore not complete
« on: November 28, 2003, 12:53:35 AM »
I'm testing SME6.03 and having a problem with backup:

Flexbackup writes 3 files to AIT-tape. One large file and two small files (as you can see in logfile) 1,2Gb in about 30 min.

Now for example: I simulate a loss of data on the server and erase some users
In this case I really want to restore the data. Restore takes about 30 sec...

Restoring from tape was successful.

For more details concerning this successful restore see:

    /var/log/messages
    /flexbackup.extract.log

BUT THE PROBLEM IS: not all the data is restored. Just a few usersettings..

Does anybody nog what the problem is? Please help me.

Thanks! Regards Richard



Log file:

flexbackup version 1.1.7 (http://flexbackup.sourceforge.net)
/etc/flexbackup.conf syntax OK

|------------------------------------------------------------
| Checking 'buffer' on this machine... Ok
| Checking /bin/sh on this machine... bash2
|------------------------------------------------------------
| Doing level 0 backup of set all using tar
| All sets = full (1 tapes)
| Rewinding & erasing tape...
| Found index key 200311250040, next file is 3
| Deleting record for 200311250040 file 0
| Deleting record for 200311250040 file 1
| Deleting record for 200311250040 file 2
|------------------------------------------------------------
| Creating index key 200311252300
| Backup set full (/ /boot)
| Tape #0
|------------------------------------------------------------
At block 1.
|------------------------------------------------------------
| File number 1, tape index 200311252300
| Backup of: /
| Date of this level 0 backup: Tue Nov 25 23:00:35 2003
| Date of last level 0 backup: the epoch
|------------------------------------------------------------
| cd "/" && find . -depth -xdev ! -type s ! -regex "news/articles" ! -regex
|   ".*~"$ -print0 | tar --create --null --files-from=-
|   --ignore-failed-read --same-permissions --no-recursion --totals --label
|   "level 0 / Tue Nov 25 23:00:35 2003 tar+gzip from server2" --sparse
|   --atime-preserve -b 20 --file - | gzip -4 | buffer -m 3m -s 10k -u 100
|   -t -p 75 -B -o "/dev/nst0"
|------------------------------------------------------------
Total bytes written: 1253570560 (1.2GB, 643kB/s)
Kilobytes Out 914810
|------------------------------------------------------------
| Backup start: Tue Nov 25 23:00:35 2003
| Backup end:   Tue Nov 25 23:32:27 2003
|------------------------------------------------------------
At block 91482.
|------------------------------------------------------------
| File number 2, tape index 200311252300
| Backup of: /boot
| Date of this level 0 backup: Tue Nov 25 23:32:37 2003
| Date of last level 0 backup: the epoch
|------------------------------------------------------------
| cd "/boot" && find . -depth -xdev ! -type s ! -regex "news/articles" !
|   -regex ".*~"$ -print0 | tar --create --null --files-from=-
|   --ignore-failed-read --same-permissions --no-recursion --totals --label
|   "level 0 /boot Tue Nov 25 23:32:37 2003 tar+gzip from server2" --sparse
|   --atime-preserve -b 20 --file - | gzip -4 | buffer -m 3m -s 10k -u 100
|   -t -p 75 -B -o "/dev/nst0"
|------------------------------------------------------------
Total bytes written: 9963520 (9.5MB, 982kB/s)
Kilobytes Out 5260
|------------------------------------------------------------
| Backup start: Tue Nov 25 23:32:37 2003
| Backup end:   Tue Nov 25 23:32:56 2003
|------------------------------------------------------------
At block 92008.
|------------------------------------------------------------
| Rewinding...
| Removing old level 0 log of all (dated 200311250040)  Compressing log
|(all.0.200311252300.gz)  Linking all.latest.gz -> all.0.200311252300.gz
|------------------------------------------------------------

File  Contents    (tape index 200311252300)
---------------------------------------------
0    
1    level 0 / Tue Nov 25 23:00:35 2003 tar+gzip from server2
2    level 0 /boot Tue Nov 25 23:32:37 2003 tar+gzip from server2

Ray Mitchell

Re: restore not complete
« Reply #1 on: November 28, 2003, 10:02:02 AM »
Look and you will find !!

http://www.e-smith.org/faq.php3#8q24

What does the SME Server backup do?
The backup to desktop will compress the following directories to a file named smeserver.tgz:


/home/e-smith
/etc/e-smith/templates-custom
/etc/e-smith/templates-user-custom
/etc/ssh
/root/.ssh
/etc/passwd
/etc/shadow
/etc/group
/etc/gshadow
/etc/smbpasswd

The backup to tape will backup all filesystems, however only the files and directories in the above list will be restored. The tape backup does a level 0
  • backup using a program called flexbackup.


Both methods will backup MySQL data.

  • Level 0 backups of "all" assume a new tape - this will trigger tape retension and erasure.


Regs
Ray

Richard

Re: restore not complete
« Reply #2 on: November 28, 2003, 11:11:35 AM »
Hello Ray,

Thanks for your reaction.

So I understand that flexbackup will not backup the entire harddisk as written in the manual? Do you know how I can make sure that ALL the files are in the backup?

Strange: The logfile says that there is 1,2Gb written on tape and that is what's on disk (and takes about 30 min. to write)

Regards Richard
-The Netherlands-

Ray Mitchell

Re: restore not complete
« Reply #3 on: November 28, 2003, 11:15:46 AM »
Richard
You have misunderstood my post.

The backup to tape will backup ALL filesystems, however only the files and directories in the following list will be restored. Tape backup will backup MySQL data.

/home/e-smith
/etc/e-smith/templates-custom
/etc/e-smith/templates-user-custom
/etc/ssh
/root/.ssh
/etc/passwd
/etc/shadow
/etc/group
/etc/gshadow
/etc/smbpasswd

Hope that clarifies things
Ray

Ray Mitchell

Re: restore not complete
« Reply #4 on: November 28, 2003, 11:18:10 AM »
Richard
PS If you want to restore files (from tape) other than those shown in the list, then you need to do that manually from the command prompt.

Regs
Ray

Richard

Re: restore not complete
« Reply #5 on: November 28, 2003, 11:29:09 AM »
That is too complicated for me. (Is it?) Is there an easier way? I like to do it as the server-manager says:

The tape backup method uses a software package called flexbackup to back up your entire hard disk to tape every night. This requires a supported tape drive and a tape that is not write-protected. The backup is performed automatically at the selected time every night (with a reminder automatically e-mailed to the administrator during the day). Currently your hard disk contains 12Gb of data.
Both restore methods allow you to restore your configuration and user data files. Ideally, the restore should be performed on a freshly installed server.

Perhaps I need to restore it after a clean install?

Thanks again Ray

Ray Mitchell

Re: restore not complete
« Reply #6 on: November 28, 2003, 04:36:18 PM »
If you wish to use the server manager to do a restore from tape, then you do a fresh instal of the operating system first and then do the restore from tape (as the instructions say).
Regs
Ray

Kelvin

Re: restore not complete
« Reply #7 on: November 29, 2003, 11:43:06 AM »
Hi Richard,

Do yourself a favour and forget about flexbackup.

Go to contribs.org and look for Shad Lord's Arkeia backup contrib. The JUI takes a bit of getting used to but once you get the hang of it, you will find it a lot easier to work with than having to remember command line parameters, etc. when doing restores.

Kelvin

richard

Re: restore not complete
« Reply #8 on: November 29, 2003, 12:01:16 PM »
thanks Kelvin,

I'll try Arkeia and keep you informed.