Unoffical empeg BBS

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

Topic Options
#127689 - 24/11/2002 03:13 Backing up dynamic data
anonymous_coward
new poster

Registered: 23/02/2002
Posts: 7
Hi.

I've just read the backup procedure described in the faq and wondered why it's not possible to back up the dynamic data partition.
Can't I just use dd for that?

Also, would it be possible to back up the database/playlist/tags files along with the music files and restore them later instead of rebuilding them?

Top
#127690 - 24/11/2002 03:19 Re: Backing up dynamic data [Re: anonymous_coward]
anonymous_coward
new poster

Registered: 23/02/2002
Posts: 7
Of course I'm assuming that the empeg is running the same software version at restore time that it was running at backup time.

Top
#127691 - 24/11/2002 08:37 Re: Backing up dynamic data [Re: anonymous_coward]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
I've not personally done it but I don't see why you couldn't dump out the entire 32MB dynamic data partition and then restore it later on.

- Trevor

Top
#127692 - 29/11/2002 22:27 Re: Backing up dynamic data [Re: anonymous_coward]
drakino
carpal tunnel

Registered: 08/06/1999
Posts: 7868
Yes, dd works fine for dumping /dev/hda3 and then restoring it later. I did this during my migration from my Mark 2 to the Mark 2a that I bought in the fire sale.

Not sure why it's not in the FAQ currently. For the FAQ master to add:

To backup the data: (Asuming drives are in RW mode for this)
dd if=/dev/hda3 of=/drive0/filenametobackupto

To restore: (drives do not need to be in RW mode)
dd if=/drive0/filenametobackupto of=/dev/hda3

Top
#127693 - 29/11/2002 22:57 Re: Backing up dynamic data [Re: drakino]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31572
Loc: Seattle, WA
So, then...

a) "dd" is already on the player as part of the developer build?

b) It will work with the command lines you described regardless of the number of drives or model of player?

c) You are backing up to a loose file on /drive0 and then later making a copy of THAT onto the PC somewhere?
_________________________
Tony Fabris

Top
#127694 - 29/11/2002 23:16 Re: Backing up dynamic data [Re: tfabris]
drakino
carpal tunnel

Registered: 08/06/1999
Posts: 7868
a) "dd" is already on the player as part of the developer build?

Yep. It's a very low level command for Linux users, similar to having ls, cp and such around.

b) It will work with the command lines you described regardless of the number of drives or model of player?

Correct, since the dynamic data is always on the first (/dev/hda) hard drive.

c) You are backing up to a loose file on /drive0 and then later making a copy of THAT onto the PC somewhere?

Yes. I choose drive0 since it should have enough space to hold a 32mb file. To restore, the user would have to put that file back on the empeg somehow.

Top
#127695 - 29/11/2002 23:19 Re: Backing up dynamic data [Re: anonymous_coward]
drakino
carpal tunnel

Registered: 08/06/1999
Posts: 7868
Also, would it be possible to back up the database/playlist/tags files along with the music files and restore them later instead of rebuilding them?

Sorry, forgot to answer this. The best way would probably be to just let the empeg rebuild the database. But, if you do want to backup the database, save and restore the files in /empeg/var named database, fids and playlists.

Top
#127696 - 03/12/2002 00:24 Re: Backing up dynamic data [Re: drakino]
anti
member

Registered: 10/07/2000
Posts: 117
Loc: BaWue, Germany, Europe
>> c) You are backing up to a loose file on /drive0 and then later making a copy of THAT onto the PC somewhere?

> Yes. I choose drive0 since it should have enough space to hold a 32mb file. To restore, the user would have to put that file back on the empeg somehow.

Why don't you just use hijack and ftp down /dev/hdaX directly ?

I have a nightly backup of my dynamic data partition for the last half year;
And I hope one day I can use this to create listening stats....
_________________________
-------------------- MKII 08000073 40GB BLUE

Top
#127697 - 03/12/2002 08:45 Re: Backing up dynamic data [Re: anti]
image
old hand

Registered: 28/04/2002
Posts: 770
Loc: Los Angeles, CA
I have a nightly backup of my dynamic data partition for the last half year;
And I hope one day I can use this to create listening stats....


hmm, neat idea. i wonder if it would take long if we got the empeg to just store the initial dynamic partition, then make a compressed diff everyday (or even as a part of the player startup)... and storing it in the music partition. changes cant be more than 50k/day compressed.

[hint]if only someone would reveal the structure of the partition...[/hint]

Top