LinuxSA Mailing list archives

Index: [thread] [date] [subject] [author]
  From: Adrian Butterworth <adrian@groc.econ-outlook.com.au>
  To  : linuxsa@linuxsa.org.au
  Date: Mon, 26 Apr 1999 19:46:19 +0930

Re: Backing up to & mounting fd0

Hi Brenton
some examples that may answer your tar questions.

note: "tar tf /dev/fd0 ." was wrong - sorry my typo last message
      drop the "." the -t list option doesn't require a file list 

---- example 1. ----tar to raw device-------------------------------------
[root@grissom scripts]# du -s
105     .
[root@grissom scripts]# tar cf /dev/fd0 .
[root@grissom scripts]# tar tf /dev/fd0
./
fetchmaildemon
firewall
llama
llamachat
loraine
lorainechat
settime
bart
bartchat
lucifer
luciferchat
ppp
pppminicom
ppppas
alert
test
test.script
test1
testHTMLmail
pegasus
pegasuschat
masquerade
buildmaillist
archiveAnalogLogs
xenvelopes
listeditedfiles
envelopes
[root@grissom scripts]#


---- example 2 ----to file on filesystem------------------------------------
[root@grissom scripts]# /sbin/mke2fs /dev/fd0
mke2fs 1.10, 24-Apr-97 for EXT2 FS 0.5b, 95/08/09
Linux ext2 filesystem format
Filesystem label=
360 inodes, 1440 blocks
72 blocks (5.00%) reserved for the super user
First data block=1
Block size=1024 (log=0)
Fragment size=1024 (log=0)
1 block group
8192 blocks per group, 8192 fragments per group
360 inodes per group

Writing inode tables: done     
Writing superblocks and filesystem accounting information: done
[root@grissom scripts]# mount /dev/fd0 /mnt/floppy/
[root@grissom scripts]# tar cf /mnt/floppy/scripts.tar .
[root@grissom scripts]# tar tf /mnt/floppy/scripts.tar 
./
fetchmaildemon
firewall
llama
llamachat
loraine
lorainechat
settime
bart
bartchat
lucifer
luciferchat
ppp
pppminicom
ppppas
alert
test
test.script
test1
testHTMLmail
pegasus
pegasuschat
masquerade
buildmaillist
archiveAnalogLogs
xenvelopes
listeditedfiles
envelopes
[root@grissom scripts]# ls /mnt/floppy/
lost+found   scripts.tar
[root@grissom scripts]# 

--- example 3 --------- backup some files ------------------------
[root@grissom scripts]# tar cf /mnt/floppy/somescripts.tar f* tes*
[root@grissom scripts]# ls /mnt/floppy/
lost+found       scripts.tar      somescripts.tar
[root@grissom scripts]# tar tf /mnt/floppy/somescripts.tar 
fetchmaildemon
firewall
test
test.script
test1
testHTMLmail
[root@grissom scripts]#

Adrian

-- 
Check out the LinuxSA web pages at http://www.linuxsa.org.au/
To unsubscribe from the LinuxSA list:
  mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject


Index: [thread] [date] [subject] [author]
Return to the LinuxSA Mailing List Information Page