OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Whole Disk Backup ?, What do you use ?
ins0mniaque
post Feb 7 2006, 12:15 PM
Post #1





Group: Members
Posts: 27
Joined: 18-May 05
Member No.: 7,162



Hi. I'm quite an OpenBSD newbie, and I keep on trying a whole lot of things and switch forth and back from pdaXrom, Cacko and OpenBSD.

Right now I'm using my C3000 only to play music / C++ coding / wardriving. OpenBSD does those things quite well, and being able to SSH into my zaurus to change the currently playing song is quite fun wink.gif

But I'm starting to mess with the kernel, building the patches iamasmith provided to fix the X event buffer bug, and I would like to "revert" the zaurus to a previous backup, the fastest way possible. I am not using any form of backup right now. I've looked at amanda, rsync, or just "tar"ing the whole disk. What would be perfect would be a background backup to a remote samba directory executed between certain hours when the zaurus is idle.

What are you using to backup / restore your precious little machine ?
Go to the top of the page
 
+Quote Post
iamasmith
post Feb 8 2006, 04:26 AM
Post #2





Group: Members
Posts: 1,248
Joined: 6-July 04
Member No.: 3,928



QUOTE(ins0mniaque @ Feb 7 2006, 08:15 PM)
Hi. I'm quite an OpenBSD newbie, and I keep on trying a whole lot of things and switch forth and back from pdaXrom, Cacko and OpenBSD.

Right now I'm using my C3000 only to play music / C++ coding / wardriving. OpenBSD does those things quite well, and being able to SSH into my zaurus to change the currently playing song is quite fun wink.gif

But I'm starting to mess with the kernel, building the patches iamasmith provided to fix the X event buffer bug, and I would like to "revert" the zaurus to a previous backup, the fastest way possible. I am not using any form of backup right now. I've looked at amanda, rsync, or just "tar"ing the whole disk. What would be perfect would be a background backup to a remote samba directory executed between certain hours when the zaurus is idle.

What are you using to backup / restore your precious little machine ?
*


Since the Kernel is monolithic you don't need to worry about kernel modules, backing them up etc.

When you build a kernel it produces a file called bsd which you can boot... when testing I typically copy it to /bsd.test and when the boot prompt comes up I type in bsd.test leaving my old Kernel in place until I am sure I haven't broken anything.

For backups you may want to look at rsync or if you want a nice way to sync text changes back and forth consider unison.

If using rsync for backup check the option list.. you certainly want to make sure you have the -a (archive flag) and probably want to use the z flag for compression. rsync will 'just find' ssh and use if it you do something like..

rsync -avz myzaurusname:/home/myname ./mybackup

Now be careful about a couple of things... if you want to sync data then rsync is good, if you want to backup a snapshot you need to be very careful... firstly you need to be root to preserve uid/gid, secondly rsync is clever and if you have a user called fred on your local system and a user called fred on the remote with different uids then rsync will map fred to fred and change the uid on the files if copies.. true snapshots can be accomplished as follows..

rsync -avz --numeric-ids myzaurusname:/ ./myZaurusBackupDir

you may wish change your mind about using the -z option if you have a lot of large already compressed files since it can waste a lot of time.

I run moinmoin as a PIM Wiki and I use unison to sync the wiki data between a Gentoo box and my Zaurus running OpenBSD so I can edit the wiki on either and then sync it back. unison has a rather neat feature of being able to sync conflicts using diff/patch smile.gif

- Andy
Go to the top of the page
 
+Quote Post
iamasmith
post Feb 8 2006, 04:28 AM
Post #3





Group: Members
Posts: 1,248
Joined: 6-July 04
Member No.: 3,928



Incidentally the ws mouse patch is now in the -current cvs so expect the next Zaurus snapshot to contain that patch.
Go to the top of the page
 
+Quote Post
ins0mniaque
post Feb 8 2006, 11:34 AM
Post #4





Group: Members
Posts: 27
Joined: 18-May 05
Member No.: 7,162



Thank you very much. I'll use rsync for my snapshots and unison to keep my "PIM data" (which is vim + text files) synchronized.
Go to the top of the page
 
+Quote Post
iamasmith
post Feb 14 2006, 04:32 PM
Post #5





Group: Members
Posts: 1,248
Joined: 6-July 04
Member No.: 3,928



Actually, a little more info on rsync... to cut out errors on /dev (I'm assuming you would probably reinstall before restoring files) and to make sure that the rsync deletes files that no longer exist on the zaurus from the backup you may want to use something like I do... (mungo is the name of my zaurus).

backupmungo.sh

#!/bin/sh
cd /home/andrews/archive/mungo-rsync
rsync -avz --numeric-ids --delete --exclude '/dev/*' mungo:/ .

Note that rsync gets its performance by sending only changes so it rocks for taking safe snapshots... obviously if you want date by date archives then you should probably copy these snapshot directories between rsync operations.

- Andy
Go to the top of the page
 
+Quote Post
jpmatrix
post May 8 2007, 11:01 AM
Post #6





Group: Members
Posts: 1,019
Joined: 15-February 05
From: France
Member No.: 6,477



hi
now i've a quite good version of openbsd running on my zaurus, i'm thinking about a backup solution ! wink.gif
this thread talks mainly about synchronization solutions, but not a way of backing up the whole openbsd filesystem to restore it further (after testing another distro for example wink.gif
what is the best way to do that with openbsd zaurus ???
Go to the top of the page
 
+Quote Post
jpmatrix
post Jun 27 2007, 04:15 AM
Post #7





Group: Members
Posts: 1,019
Joined: 15-February 05
From: France
Member No.: 6,477



well,
i just backuped my openbsd system with a tar zcvpf backup.tgz /
i hope i'll be able to restore it later after i spend my holidays with pdaxii13 wink.gif

do you think a stock restore will work after the initial openbsd partitionning scheme ?
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 29th July 2014 - 11:06 PM