View previous topic :: View next topic |
Author |
Message |
heavyjoost Tux's lil' helper
Joined: 26 Aug 2004 Posts: 90 Location: /home/heavyjoost
|
Posted: Thu Nov 16, 2006 3:45 pm Post subject: making backup |
|
|
I was wondering how I could make an exact copy of the data on my reiserfs partition.
I read some time ago that I just should use tar but I forgot what command exactly.
What I want is to tar/copy the data to my 250GB disk, make a jfs partition on the other (which currently has reiserfs) and then tar/copy the data back from the 250GB disk. Also, I think it's best that the access/modify times and owners should stay as they are.
Does anyone know what I should do ?
Btw, the 250GB disk is a SATA one.
Thanks in advance |
|
Back to top |
|
|
KuroRyu Tux's lil' helper
Joined: 11 Mar 2004 Posts: 95 Location: Phoenix, AZ, USA
|
Posted: Thu Nov 16, 2006 4:01 pm Post subject: |
|
|
you might try man tar
Code: | tar cjvpf /path/to/backup.tar.bz2 /path/to/data |
c: creates archive
j: compresses archive using bzip2
v: verbosity level 1
p: preserve all permissions
f: to specify archive name _________________ I'm ready to rock out with my Glock out! |
|
Back to top |
|
|
tost Guru
Joined: 10 Dec 2005 Posts: 506
|
Posted: Thu Nov 16, 2006 4:10 pm Post subject: |
|
|
Try disk-archive out of portage with nice documentations on http://dar.linux.free.fr/doc/index.html
Quote: | * app-backup/dar
Available versions: 2.2.6 ~2.3.1:4 ~2.3.2:4
Installed: 2.2.6
Homepage: http://dar.linux.free.fr/
Description: A full featured backup tool, aimed for disks (floppy,CDR(W),DVDR(W),zip,jazz etc.) |
Or with kdar for a graphical interface. |
|
Back to top |
|
|
heavyjoost Tux's lil' helper
Joined: 26 Aug 2004 Posts: 90 Location: /home/heavyjoost
|
Posted: Thu Nov 16, 2006 6:05 pm Post subject: |
|
|
KuroRyu wrote: | you might try man tar
Code: | tar cjvpf /path/to/backup.tar.bz2 /path/to/data |
c: creates archive
j: compresses archive using bzip2
v: verbosity level 1
p: preserve all permissions
f: to specify archive name |
Hmm, couldn't find that.. Thanks!
And thanks tost, I'll check dar out too. |
|
Back to top |
|
|
heavyjoost Tux's lil' helper
Joined: 26 Aug 2004 Posts: 90 Location: /home/heavyjoost
|
Posted: Thu Nov 16, 2006 8:55 pm Post subject: |
|
|
Now I only wonder if the gentoo installation cd has support for SATA, the via chipset that is.
That's because I want to boot from the livecd so nothing on my primary harddisk changes and I can just copy all stuff to the SATA disk
Btw, I noted that cp -r --preserve=all foobar/ ./ also works fine to make a backup. Or am I missing something? I'd like to know |
|
Back to top |
|
|
T-Dawg n00b
Joined: 12 Nov 2006 Posts: 51
|
Posted: Fri Nov 17, 2006 12:39 am Post subject: |
|
|
if you want an exact copy bit for bit, use dd. dd if=/source/partion/ of=/target/partion bs=4096 conv=notrunc,noerrors
The target partion will have to be the same size or larger. |
|
Back to top |
|
|
heavyjoost Tux's lil' helper
Joined: 26 Aug 2004 Posts: 90 Location: /home/heavyjoost
|
Posted: Fri Nov 17, 2006 12:42 am Post subject: |
|
|
No I only want the files + fileinfo, 'cause I'm gonna use another FS |
|
Back to top |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
|
Back to top |
|
|
|