LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-15-2004, 04:26 PM   #1
jamaso
Member
 
Registered: Oct 2001
Location: brasil
Distribution: mdrk 8.0,redht7.1,debianpotato
Posts: 615

Rep: Reputation: 30
backing-up?


Hi!

How do you back-up your custom "trimmed" install onto a partition in case you have a system compromising situation ? it's possible to automatically start a copy, in case something goes wrong? if you please give a few "key" words for me to look for, as this might be a rather general question, and this is not the place to do it anyway, i would surely apreciate.
I am trying 3d acceleration on a IGP radeon 340M under slackware 9.1 (i found it in linux questions answers (see the duality of it?) thats why i love this site and go crazy about having to re-install everything again too!!) thanks !
 
Old 06-15-2004, 06:18 PM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,230

Rep: Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724
You can backup kernel + modules + prog for your card + config files in a tar gz file which could be burned on a cd.
Code:
# mkdir backup
# cp -r /boot backup/
# cp -r /lib/modules/$(uname -r) backup/
# mkdir backup/bin
# cp whatever_programs backup/bin/
# mkdir backup/etc
# cp whatever_config_files backup/etc/
# tar -czvf backup.tar.gz backup

Last edited by keefaz; 06-15-2004 at 06:20 PM.
 
Old 06-15-2004, 08:22 PM   #3
jamaso
Member
 
Registered: Oct 2001
Location: brasil
Distribution: mdrk 8.0,redht7.1,debianpotato
Posts: 615

Original Poster
Rep: Reputation: 30
thanks a bunch !

one more thing :

i just used / for both is it alright?

# cp whatever_programs(/) backup/bin/
#cp whatever_config_files(/) backup/etc/
-------------------------------------------
ls /root/backup

2.4.22 boot etc

can i copy as well to a empty partition?
thanks again
 
Old 06-16-2004, 06:54 AM   #4
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,230

Rep: Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724
Quote:
i just used / for both is it alright?
If I understand, you just add slash (/) to end of file/directory name ? Is does not matter
Quote:
can i copy as well to a empty partition?
yes, I tought burn resulting tar.gz backup file in a cd was more handy, but you can copy this file to everywhere you want.

For duplicate a entire partition to another partition, there is a command with tar :
Code:
cd /original_partition; tar cvf - . | (cd /destination_partition; tar xvf -)
Just make sure the destination partition is greater or equal than source partition

[edit]
The size partition does no matter but the size of files which are copied yes.
ie : a 8 gb / partition with 2 gb datas > just 2 gb are copied

Last edited by keefaz; 06-16-2004 at 07:46 AM.
 
Old 06-16-2004, 08:01 AM   #5
jamaso
Member
 
Registered: Oct 2001
Location: brasil
Distribution: mdrk 8.0,redht7.1,debianpotato
Posts: 615

Original Poster
Rep: Reputation: 30
I dont want to overask but, how can i activate the backed-up files? Sorry for all the questioning but you saved me a lot searching/reading !
 
Old 06-16-2004, 08:03 AM   #6
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,230

Rep: Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724
To uncompact tar.gz file (?) : tar xzvf your_file.tar.gz
 
  


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
Backing up ChristineCrawford Linux - Newbie 8 12-17-2005 07:21 AM
Backing up /etc. Gag Halfrunt Linux - Newbie 1 12-05-2004 03:40 AM
backing up koyi Linux From Scratch 2 10-09-2004 10:54 AM
backing up coheed Linux - Software 4 01-25-2004 09:01 PM
Backing up osx Linux - General 5 03-24-2003 02:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:32 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration