LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-14-2004, 11:26 AM   #1
drigz
Member
 
Registered: Apr 2004
Distribution: Gentoo ~x86
Posts: 407

Rep: Reputation: 30
Possible ways to backup laptop


I have a laptop, and I want to backup the entire drive, as I know that when I send it off to repair they will wipe Linux, and I've just spent about 48 CPU hours compiling Gentoo and OpenOffice etc. on it. I can't see how I could plug the hard drive into my desktop (it has a strange non-ATA connector...), so I tried samba. I shared my /, and connected to it, then ran
cp -a /mnt/samba /lapbak
. However, not only did this complain about things like etc/shadow, I also suspect that it was getting the permissions wrong. How would you suggest doing it? I'm currently (on the laptop) running
tar --preserve -cf root.tar /

I use devfsd on it (as this is the default and I didnt't see why I should change it).

EDIT: tar seems to be complaining a lot about /sys

Last edited by drigz; 10-14-2004 at 11:29 AM.
 
Old 10-14-2004, 12:20 PM   #2
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
backup? what about "dump" ?
Code:
man dump
good luck
 
Old 10-14-2004, 12:41 PM   #3
95se
Member
 
Registered: Apr 2002
Location: Windsor, ON, CA
Distribution: Ubuntu
Posts: 740

Rep: Reputation: 32
You can actually get little adapters for the laptop harddrive ide connectors, to normal desktop ide connectors.
A quick google brought up this: http://www.cablestogo.com/product.as...=906&sku=17705
I have never used this store, and in no way am endorsing them, so I have no idea what they are likie, but just as an example.
A lot of different stores have them, or if you have a friend or something who does comp. repairs, he'll probably have one.

Last edited by 95se; 10-14-2004 at 12:42 PM.
 
Old 10-14-2004, 01:00 PM   #4
drigz
Member
 
Registered: Apr 2004
Distribution: Gentoo ~x86
Posts: 407

Original Poster
Rep: Reputation: 30
It's cool - I mounted the drive at /mnt/gentoo, then tarred it up and copied it across with samba, and it seems all right.

EDIT: in reference to the dump suggestion, a) I'm using xfs, but I could emerge xfsdump and b) what advantages does it have?

Last edited by drigz; 10-14-2004 at 01:05 PM.
 
Old 10-15-2004, 04:27 AM   #5
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
i dont know about xfs nor xfsdump.
i can say that dump is cool tool. it can backup complete of partition. also u can define dump level. so it backups only differences between previous lower level dump. as i remeber it has 9 levels. u can write a simple script and add it as cron job. so u can backup your patitions in different levels for different days of week. so u will have a backup system backwarded for everyday of last 7 days.

tar is as cool tool as dump i think u can add files which are modifed or created in recent (3) days to tar file like this:
find / -mtime -3 -type f | xargs tar rf /path/to/file.tar
but im not sure if it is a good idea. becuse it will probably try to add file.tar in same file.tar
hmmm. grep!!
find / -mtime -3 -type f |grep -v "/path/to"| xargs tar rf /path/to/file.tar
now it seems that it is a good idea

i love linux, because u have lots of choices

edit : u dont have to add newer files in that file.tar, it is better idea to backup newer files in another tar file.

good luck.

Last edited by maxut; 10-15-2004 at 06:33 AM.
 
Old 10-15-2004, 11:27 AM   #6
drigz
Member
 
Registered: Apr 2004
Distribution: Gentoo ~x86
Posts: 407

Original Poster
Rep: Reputation: 30
BTW: tar is clever, and doesn't try and add a file to itself - which would be silly....

I'm happy with my tar backup, although dump seems interesting and maybe I'll use it next time.

Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
piping both ways? quinton Linux - Newbie 3 09-20-2004 07:10 PM
what are the ways of installation paschim Linux - Newbie 2 06-27-2004 11:45 PM
Simple way to backup my laptop enine Linux - General 2 02-04-2004 01:00 PM
Cant Install Off CD! Other Ways? Rv5 Red Hat 5 09-04-2003 02:20 PM
Ways to Partition? cclavey Linux - Newbie 2 03-12-2003 01:22 PM


All times are GMT -5. The time now is 05:20 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration