Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
making backup
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
heavyjoost
Tux's lil' helper
Tux's lil' helper


Joined: 26 Aug 2004
Posts: 90
Location: /home/heavyjoost

PostPosted: Thu Nov 16, 2006 3:45 pm    Post subject: making backup Reply with quote

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
View user's profile Send private message
KuroRyu
Tux's lil' helper
Tux's lil' helper


Joined: 11 Mar 2004
Posts: 95
Location: Phoenix, AZ, USA

PostPosted: Thu Nov 16, 2006 4:01 pm    Post subject: Reply with quote

you might try man tar :lol:

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
View user's profile Send private message
tost
Guru
Guru


Joined: 10 Dec 2005
Posts: 506

PostPosted: Thu Nov 16, 2006 4:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
heavyjoost
Tux's lil' helper
Tux's lil' helper


Joined: 26 Aug 2004
Posts: 90
Location: /home/heavyjoost

PostPosted: Thu Nov 16, 2006 6:05 pm    Post subject: Reply with quote

KuroRyu wrote:
you might try man tar :lol:

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
View user's profile Send private message
heavyjoost
Tux's lil' helper
Tux's lil' helper


Joined: 26 Aug 2004
Posts: 90
Location: /home/heavyjoost

PostPosted: Thu Nov 16, 2006 8:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
T-Dawg
n00b
n00b


Joined: 12 Nov 2006
Posts: 51

PostPosted: Fri Nov 17, 2006 12:39 am    Post subject: Reply with quote

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
View user's profile Send private message
heavyjoost
Tux's lil' helper
Tux's lil' helper


Joined: 26 Aug 2004
Posts: 90
Location: /home/heavyjoost

PostPosted: Fri Nov 17, 2006 12:42 am    Post subject: Reply with quote

No I only want the files + fileinfo, 'cause I'm gonna use another FS
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Fri Nov 17, 2006 12:27 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Duplicate Threads.
See here for example: https://forums.gentoo.org/viewtopic-t-508556-highlight-backup.html
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum