maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   DAR (Disk ARchive) backup tool (https://talk.maemo.org/showthread.php?t=20169)

locusf 2008-05-18 10:22

DAR (Disk ARchive) backup tool
 
2 Attachment(s)
Hi!

I have managed to compile a backup tool for OS2008. It is called DAR, short for Disk ARchive, this url can give you more info http://freshmeat.net/projects/dar/ (the main site isn't working or is it?).

This tool supports full/incremental backup, compression, piping etc etc, so this should be anything an IT hacker needs for his backup things :).

HOWTO for DAR

A mini howto here for N8x0:

Backup with bz2 compression, 1 GB slice and backs up your mmc2 to your mmc1 (ie. external mmc2):
Code:

dar -m 256 -s 1G -y -R /media/mmc2 -c /media/mmc1/$(date -I)_backup -Z "*.gz" -Z "*.bz2" -Z "*.deb"
The file will be named with the current date + .dar.N where N is the slice number.

Restoring a backup:
Code:

dar -x backupfile.dar.1 -R /media/mmc2 -w
Replace backupfile.dar.1 with your own filename that was created with dar.



The files:
Attachment 1701
Attachment 1702

Install them in this order, ie. libdar first then dar itself.

L0cutus 2008-05-18 13:27

Re: DAR (Disk ARchive) backup tool
 
i hope someone port rdiff-backup instead :)

rscasas 2008-05-30 13:09

Re: DAR (Disk ARchive) backup tool
 
DAR is great, but very difficult to me.
How can full backup all the data on my OS partition (ext2 in my internal SD) to my external SD?

locusf 2008-05-30 16:36

Re: DAR (Disk ARchive) backup tool
 
Code:

dar -m 256 -y -R /media/mmc2 -c /media/mmc1/$(date -I)_backup -Z "*.gz" -Z "*.bz2" -Z "*.deb"
This is what I used. It backs up the entire internal SD to external SD in to a single files, without slicing to smaller parts.

rscasas 2008-05-30 19:34

Re: DAR (Disk ARchive) backup tool
 
Useful! Thanks a lot!
"Entire internal SD" means no matter how many partitions on it?. Mine have two : ext2 with cloned OS and FAT32 for data.
BTW can you post the restore command?

italodance 2008-06-01 06:52

Re: DAR (Disk ARchive) backup tool
 
umm well please tell me can i back up everything on my n800? specially apps/games on my device memory

locusf 2008-06-01 10:10

Re: DAR (Disk ARchive) backup tool
 
Quote:

Originally Posted by italodance (Post 187646)
umm well please tell me can i back up everything on my n800? specially apps/games on my device memory

Sure, just put / as the source of backing up. It should also restore ok, but please put /mnt/initfs etc etc to your ignore options while backing up, like this:

Code:

dar -m 256 -P /mnt -P /media/mmc1 -s 1G -y -R / -c /media/mmc1/$(date -I)_backup -Z "*.gz" -Z "*.bz2" -Z "*.deb"

qwerty12 2008-06-01 10:15

Re: DAR (Disk ARchive) backup tool
 
If you cross compile 0xFFFF for arm, it can backup the rootfs into a file called rootfs.jffs2 which the flasher can then flash back.


All times are GMT. The time now is 17:52.

vBulletin® Version 3.8.8