Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Engelmann on April 20, 2001, 03:11:44 PM
-
hi,
i just deleted a file that should not be deleted on my e-smith server (in an ibay)! so i started my ssh client to restore the file with flexbackup (running on my IDE Seagate Hornet tapedrive).
that's the log of the backup:
====cut======================================
flexbackup version 0.9.8
/etc/flexbackup.conf syntax OK
|------------------------------------------------
| Trying "mt defblksize" instead of "mt setblk"
| Doing level 0 backup of all using dump
| Retensioning tape...
| Rewinding & erasing tape...
| Creating index key 200104200103.31
| Tape #0
| Filesystems = / /boot
|------------------------------------------------
At block 41.
|------------------------------------------------
| File number 1, index key 200104200103.31
| Backup of: /
| Date of this level 0 backup: Fri Apr 20 01:03:40 2001
| Date of last level 0 backup: the epoch
|------------------------------------------------
| (dump -0 -b 10 -a -f - / | gzip -4) | buffer -m 3m -s 10k -u 100 -t -p 75 -B \
| -o /dev/nst0
|------------------------------------------------
DUMP: Date of this level 0 dump: Fri Apr 20 01:03:40 2001
DUMP: Date of last level 0 dump: the epoch
DUMP: Dumping /dev/md1 (/) to standard output
DUMP: Label: none
DUMP: mapping (Pass I) [regular files]
DUMP: mapping (Pass II) [directories]
DUMP: estimated 4210788 tape blocks.
DUMP: Volume 1 started at: Fri Apr 20 01:04:00 2001
DUMP: dumping (Pass III) [directories]
DUMP: dumping (Pass IV) [regular files]
DUMP: 4.21% done, finished in 1:53
DUMP: 9.57% done, finished in 1:34
DUMP: 15.43% done, finished in 1:22
DUMP: 20.90% done, finished in 1:15
DUMP: 26.46% done, finished in 1:09
DUMP: 33.51% done, finished in 0:59
DUMP: 38.26% done, finished in 0:56
DUMP: 43.86% done, finished in 0:51
DUMP: 50.46% done, finished in 0:44
DUMP: 56.18% done, finished in 0:38
DUMP: 61.57% done, finished in 0:34
DUMP: 68.05% done, finished in 0:28
DUMP: 76.83% done, finished in 0:19
DUMP: 82.90% done, finished in 0:14
DUMP: 90.37% done, finished in 0:07
DUMP: 97.27% done, finished in 0:02
DUMP: Volume 1 completed at: Fri Apr 20 02:28:44 2001
DUMP: Volume 1 took 1:24:44
DUMP: Volume 1 transfer rate: 851 KB/s
DUMP: 4327712 tape blocks (4226.28MB)
DUMP: finished in 5084 seconds, throughput 851 KBytes/sec
DUMP: Date of this level 0 dump: Fri Apr 20 01:03:40 2001
DUMP: Date this dump completed: Fri Apr 20 02:28:44 2001
DUMP: Average transfer rate: 851 KB/s
DUMP: DUMP IS DONE
Kilobytes Out 2172120
|------------------------------------------------
| Backup start: Fri Apr 20 01:03:40 2001
| Backup end: Fri Apr 20 02:28:51 2001
|------------------------------------------------
[...]
======cut==========================================
looks ok?!
but an:
======cut==========================================
[root@esmith /root]# flexbackup -list
flexbackup version 0.9.8
/etc/flexbackup.conf syntax OK
|------------------------------------------------
| Trying "mt defblksize" instead of "mt setblk"
| Reading from current tape position
|------------------------------------------------
At block 0.
|------------------------------------------------
| buffer -m 3m -s 10k -u 100 -t -p 75 -B -i /dev/nst0 | gzip -dq | restore -t \
| -v -b 10 -f -
|------------------------------------------------
Kilobytes Out 20
gzip: stdin: not in gzip format
restore: Tape is not a dump tape
Verify tape and initialize maps
End-of-tape encountered
|------------------------------------------------
At block 41.
|------------------------------------------------
===cut================================
tells me that no data is on my tape (same with "-toc")
WHAT IS WRONG WITH MY BACKUP?
is the device /dev/nst0 the IDE tapedrive?
where is my daily backup saved to? (cron daemon?)
i want to change it to only backup on some days a week - how?
thx for your help!
-
i just found this nice page:
http://netsourced.com/e-smith/
here is the solution!
thx
-
OK it worked (i changed some cron files and the flexbackup.conf [dev/nst0 to dev/nht0]) - now my backup fails?!
-
Engelmann wrote:
>
> OK it worked (i changed some cron files and the
> flexbackup.conf [dev/nst0 to dev/nht0]) - now my backup fails?!
It is not clear what you are doing. You had mentioned your backups were working and you simply wanted to restore a file. If this is the case then there should have been no need to change anything, so a cron and flexbackup.conf change was definitely not required nor is this the way to change these files anyhow as they are templated and device changes are done via db entries.
Put everything back the way it was, (when it was working) and then simply run the interactive restore command as noted in my:
http://netsourced.com/e-smith/howto/howto-flexbackup.html
Darrell