Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#67410 - 05/02/2002 17:33 Back Up
blitz
addict

Registered: 20/11/2001
Posts: 455
Loc: Texas
What are the technical issues involved in a backup image of the drives? I realize the FAQ about the CSV but with Hijack being able to browse the playlists and files, what would be involved in creating an image file. Obviously the file would be enormously large and a back up to hard disk would be the only logical source. Not a big issue since if the database were damaged it would probably be the least of an owners concerns. Just curious.

Top
#67411 - 05/02/2002 17:48 Re: Back Up [Re: blitz]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Using the Hijack FTP services, you can simply copy the contents of the /drive0/fids and drive1/fids to a safe place, and that's your backup.

Anyone else agree or disagree with that? That should cover playlists and tunes completely, right? If you're forced to restore the player, you will need to do some synchs to rebuild the datbase, but that's about it.

If it's that simple, then I think I'll add that to the FAQ.

Of course, it's only useful for those with ethernet, but it's a start.
_________________________
Tony Fabris

Top
#67412 - 05/02/2002 18:40 Re: Back Up [Re: tfabris]
loren
carpal tunnel

Registered: 23/08/2000
Posts: 3826
Loc: SLC, UT, USA
Yeah, that would do it from what i understand. You'd loose EQ settings and dimmer and that stuff, but the muzak is what's more important to most people. Or just do the smart thing and buy an 80-100 gig drive just for music on your PC, organize your songs correctly, and never worry about your empeg crashin'. =]

That of course doesn't answer the question about making an image file. You could always just do a mirror as Mark Lord touts... just do a search for Mlord and mirror.
_________________________
|| loren ||

Top
#67413 - 06/02/2002 15:40 Re: Back Up [Re: loren]
bonzi
pooh-bah

Registered: 13/09/1999
Posts: 2401
Loc: Croatia
Actually, it should be remarkably easy to transfer the image of a whole empeg drive (partition table and all) to some other machine. You would need netcat on both ends (see here ). On receiving machine:
nc -l -p 2999 | dd of=empeg_drive_0
On empeg side:
dd if=/dev/hda | nc receiving_hostname 2999
Roger & others, would this be OK?
_________________________
Dragi "Bonzi" Raos Q#5196 MkII #080000376, 18GB green MkIIa #040103247, 60GB blue

Top
#67414 - 06/02/2002 15:44 Re: Back Up [Re: bonzi]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
I'd like to see if there's a simple/easy way to back up all the tunes and playlists on a windows box without needing to use linux utilities or modify the player in a complicated way. Hijack is easy enough to install, so if that's all you need, then that would be enough for a FAQ entry I think.
_________________________
Tony Fabris

Top
#67415 - 06/02/2002 16:00 Re: Back Up [Re: tfabris]
bonzi
pooh-bah

Registered: 13/09/1999
Posts: 2401
Loc: Croatia
Of course, you were right about a massive 'prompt; mget *' ftp. I was just trying to answer a 'drive image' question.

However, I am not sure whether dummy sync is enough when restoring, or whether removal of database, fids and playlists from /etc/var is called for. I remember that once, when playing with my new unit that relegated the original one to backup status, I got no playlists in emplode, although everything was there in fids. I actually had to delete /empeg/var/playlists to resurect them. However, I think that in the extreme case of restoring the complete player dropping to shell and deleting three files is not a big deal for any user, however Linux-challenged they might be.
_________________________
Dragi "Bonzi" Raos Q#5196 MkII #080000376, 18GB green MkIIa #040103247, 60GB blue

Top
#67416 - 06/02/2002 18:09 Re: Back Up [Re: bonzi]
Shonky
pooh-bah

Registered: 12/01/2002
Posts: 2009
Loc: Brisbane, Australia
I'm currently in the process of tagging all my MP3s correctly. I use the basic directory structure of :

Artist\Album\Artist - Album - Track # - Title.

This allows me to create playlists for each album when I drop them into Emplode. Is there any way to restore this structure from a player? Using Hijack of the download facility in Emplode and I end up with everything in one directory basically.

_________________________
Christian
#40104192 120Gb (no longer in my E36 M3, won't fit the E46 M3)

Top
#67417 - 07/02/2002 04:00 Re: Back Up [Re: bonzi]
peter
carpal tunnel

Registered: 13/07/2000
Posts: 4180
Loc: Cambridge, England
On receiving machine:
nc -l -p 2999 | dd of=empeg_drive_0
On empeg side:
dd if=/dev/hda | nc receiving_hostname 2999
Roger & others, would this be OK?


It would work, but it (a) requires a filesystem on the receiving machine that can cope with gigantic files (ie. NTFS or Linux), (b) backs up the whole drive including unused space, and (c) only lets you restore to a drive of identical size.

Much better is to back up the music partition using tar, a la Roger, and only back up the fixed-size partitions (root and dynamic data) using dd. Of course, the swap partition and the spare partition needn't be backed up at all (unless you've done something funky with the spare partition).

Peter

Top
#67418 - 07/02/2002 04:25 Re: Back Up [Re: peter]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
You could use split on the end of the pipe -- instead of dd -- to chop the output up into reasonable-sized wedges. Peter's other points still stand though -- why back up the unused space?

Also, unless you've been installing stuff all over the root, there's no real need to backup the root partition, either -- you can replace it by reapplying the .upgrade file.
_________________________
-- roger

Top
#67419 - 07/02/2002 10:26 Re: Back Up [Re: bonzi]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
No need for netcat here, just use the Hijack kftpd and grab the /dev/hd* files directly with it. They're huge, but so what?

Or Backup the fids directories as previously described, and then grab the other data partitions (with EQ settings etc..) using /dev/hd*

-ml

Top
#67420 - 07/02/2002 12:25 Re: Back Up [Re: Roger]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Hmm...

Okay, here's the FAQ entry I would like to write (simplified version):

Q: "How can I backup all of my music and playlists in case my hard disk goes bad?"

A: Assuming you have a Mark2 player, you can use Ethernet, and you have the disk space on your PC, here is how to do it:

- Backup -
1) Install Hijack.
2) Fire up your FTP client.
3) Grab the entire contents of drive0/fids and drive1/fids onto your PC's hard disk.
4) Grab config.ini, too.
5) Write down your EQ presets, etc.

- Restore -
1) Replace the damaged hard disk(s) as described in drive upgrade guide.
2) Run builder utility for both disks as described in the drive upgrade guide.
3) Install the latest software onto each disk as described in the drive upgrade guide.
4) Install Hijack.
5) Set player to RW
6) Squirt the backed-up drive0/fids and drive1/fids back onto the player using your FTP client.
7) Squirt your backup of config.ini onto the player.
8) Don't forget to set player back to RO.
9) Reboot player.
10) Fire up emplode, do a synch, make sure everything is there.
11) Hand-enter the EQ presets, etc.

Will this work?
_________________________
Tony Fabris

Top
#67421 - 07/02/2002 12:33 Re: Back Up [Re: tfabris]
SE_Sport_Driver
carpal tunnel

Registered: 05/01/2001
Posts: 4903
Loc: Detroit, MI USA
You just LOVE to squirt don't you?
_________________________
Brad B.

Top
#67422 - 07/02/2002 12:49 Re: Back Up [Re: SE_Sport_Driver]
eternalsun
Pooh-Bah

Registered: 09/09/1999
Posts: 1721
Loc: San Jose, CA
gross!

Top
#67423 - 07/02/2002 12:50 Re: Back Up [Re: tfabris]
eternalsun
Pooh-Bah

Registered: 09/09/1999
Posts: 1721
Loc: San Jose, CA
Tony,

Can you fill in a few alternative methods as well. It would be good to have choices of different methods to understand what works best.

Calvin

Top
#67424 - 07/02/2002 13:08 Re: Back Up [Re: tfabris]
huh
new poster

Registered: 23/01/2002
Posts: 15
is anybody going to try before posting? i cannot see what you have could cause any damage during the backup phase. I wouldn't want to test the restore though. if i've got time, l'll try the back up tonight.

Top
#67425 - 07/02/2002 13:58 Re: Back Up [Re: tfabris]
beaker
addict

Registered: 19/08/2000
Posts: 588
Loc: England
On a related note; If you had backed up the files from a two drive player and wanted to restore them to a one drive player would you have to change all the references to drive1 in the fids to drive0?
_________________________
Marcus 32 gig MKII (various colours) & 30gig MKIIa

Top
#67426 - 07/02/2002 14:16 Re: Back Up [Re: beaker]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
I think you can pile all of the files into the same folder if you go from a two-drive backup to a one-drive restore. Roger?
_________________________
Tony Fabris

Top
#67427 - 07/02/2002 14:23 Re: Back Up [Re: tfabris]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
Yep. The player doesn't care which drive a particular fid is on. Stick 'em all in the same fids directory.
_________________________
-- roger

Top
#67428 - 07/02/2002 14:56 Re: Back Up [Re: tfabris]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Instead of step (5), use Hijack to download "/dev/hda3", which (I think) holds all of the EQ presets and other stuff.

For restoration, just send it back again to the same place.

-ml

Top
#67429 - 07/02/2002 15:06 Re: Back Up [Re: mlord]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
c:\temp>ftp empeg
Connected to empeg.
220 Connected.
User (empeg:(none)):
230 Login okay.
ftp> cd /dev/hda3
431 No such directory.
ftp>
_________________________
Tony Fabris

Top
#67430 - 07/02/2002 15:16 Re: Back Up [Re: tfabris]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
cd to /dev/ and get hda3. To restore, cd to /dev/ and put hda3. Even though it already exists, it should write the data to the drive. It's probably not worth it to explain how Unix devices work, but suffice it to say that /dev/hda3 is a device and it's an interface to the actual partition. This is like doing Ghost, but only on a single partition, without changing its size or location.
_________________________
Bitt Faulk

Top
#67431 - 07/02/2002 15:16 Re: Back Up [Re: Roger]
beaker
addict

Registered: 19/08/2000
Posts: 588
Loc: England
Aha!! that's good to know. Thanks guys .
_________________________
Marcus 32 gig MKII (various colours) & 30gig MKIIa

Top