LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-17-2006, 12:52 PM   #1
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
how to back up onto several floppies?


Wanted to back some stuff onto several floppies, wanted it compressed. Got several problems.

Tried something like:
$ tar --create --multi-volume --bzip2 --file=archive.tar.bz2 --exclude-from=excludeFile.txt /home/lugo/Documents
Something roughly like that. It said something like 'cannot make multi volume archive if compressed'

So I tarred the stuff and compressed it and tried something like the above to put it onto floppies. It got weird and asked for the second volume instantly. The floppy was very weird afterwards. Giving odd results from df and stuff.

So how is it done?

(Incidentally got simmilar results of different computers with different versions of Debian.)

Thanks any help.
 
Old 02-17-2006, 09:12 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
Try tar'ing it and then using split
 
Old 02-18-2006, 09:24 AM   #3
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
You could also use cpio which automatically stops and waits for the next floppy.
For example:
Code:
find /home/images -depth | cpio --create > /dev/fd0
The part where it wants you to change floppies and press enter may be abit confusing so, you can use a custom message...
Code:
find /home/images -depth | cpio --create \
--message="Insert next floppy and type /dev/fd0 " > /dev/fd0
You can also specify the compression type with --format=
For example: --format=crc

The extraction automatically waits for the next floppy....
Code:
cpio --extract < /dev/fd0
 
Old 02-18-2006, 11:22 AM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
After experimenting abit, it might be best to cd into the source directory first, like this...
Code:
(cd /home/images ; find . -depth | cpio --create > /dev/fd0)
Also, using the -d switch during extraction causes it to make directories when needed.
Code:
(cd /home/images ; cpio --extract -d < /dev/fd0)
 
Old 02-20-2006, 12:29 PM   #5
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Original Poster
Rep: Reputation: 49
Vast thanks both. Had never heard of split, sounds useful, and didn't know what cpio did. Thanks.

For record:
$ split --size=1400k filename
splits the file into roughly floppy sized chunks called xaa, xab, etc..

Last edited by lugoteehalt; 02-21-2006 at 02:07 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
floppies ChickenSoup Linux - Newbie 5 10-02-2004 05:58 PM
Floppies??? wyatt Slackware 1 07-02-2004 08:03 PM
Can't write to floppies alex101 Mandriva 1 02-12-2004 08:34 PM
floppies in linux darthczyz Linux - Newbie 6 01-06-2004 03:24 PM
freezing floppies. icyfire Linux - General 4 03-27-2002 02:31 AM


All times are GMT -5. The time now is 10:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration