nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Openbsd Howto backup data on tape - tutorial

This is a discussion on Openbsd Howto backup data on tape - tutorial within the All about FreeBSD/OpenBSD/NetBSD forums, part of the *BSD Operating systems category; Hi, We have proxy and firewall installed using OpenBSD. Our main sys admin is out and I need to make ...


Go Back   nixCraft Linux Forum > *BSD Operating systems > All about FreeBSD/OpenBSD/NetBSD

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 12-19-2006, 05:01 AM
raj raj is offline
Contributors
User
 
Join Date: Jun 2005
Location: Hyderabad
Posts: 130
raj is an unknown quantity at this point
Default Openbsd Howto backup data on tape - tutorial

Hi,

We have proxy and firewall installed using OpenBSD. Our main sys admin is out and I need to make a tape backup. Problem is I am not sure about tape device and commands. Since this is firewall and proxy box ; I don't wanna make any errors otherwise it might cost me my job

I'd appricate if someone give me link to tutorial and commands for this *job*
__________________
Raj
Linux rulz.
I have never turned back in my life ; I shall not do so today.. haha
Reply With Quote
  #2 (permalink)  
Old 12-20-2006, 01:44 AM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 478
monk is an unknown quantity at this point
Default

You can use tar command as usaul for making up backup. Generally tape device name is st0 under OpenBSD.

To find out tape device use dmesg command:
Code:
dmesg
To dump /home file system located on /dev/sd0h (/dev/rsd0h) use dump command
Code:
dump -0au -f /dev/nrst0 /dev/rsd0h
0 = full backup
a = determine tape media length
u - Update the file /etc/dumpdates to record when backup was last created
-f /dev/nrst0 = tape name
/dev/rsd0h = partition name (use mount command to see all partition name

Rewind tape
Code:
mt -f /dev/rst0 rewind
To view tape contents use command
Code:
restore -tvs 1 -f /dev/rst0
1 indicates first partition. Use 2 for second parition and so on...

To restore use commad (let us say /home again)
Code:
cd /home
restore -rs 1 -f /dev/rst0
Go throuh man mt, dump and restore for more information.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Howto backup and restore Outlook/Outlook Express Datafiles? Windows Xp/2000/2003 server administration 7 01-25-2008 02:30 PM
OpenBSD won't let me set offset php111 All about FreeBSD/OpenBSD/NetBSD 0 09-07-2007 11:33 PM
tar tape command example tom Getting started tutorials 0 06-05-2007 09:36 AM
UNIX list a backup tape contents chiku Getting started tutorials 0 04-27-2007 04:46 PM
Backup using FTP - Howto chiku Solaris/OpenSolaris 1 09-10-2006 06:19 PM


All times are GMT +5.5. The time now is 04:58 PM.


Powered by vBulletin® Version 3.7.2 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35