LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 09-18-2012, 01:32 AM   #1
k84834
Member
 
Registered: Aug 2012
Posts: 142

Rep: Reputation: Disabled
is this command right for backup the tools directory ?


Hi
I finished my LFS system and it is booted.
I want to backup from my /tools directory then delete it from my LFS system , is below command right for bachup ? is it preserve symliks and all attributes are in /tools ?

tar --preserve-permissions --preserve-order -jc /mnt/lfs/tools > /root/backup_tools.tar.bz2

I am log in as root user from host system to run above command.

if it is wrong, please tell me right one.
thanks
 
Old 09-18-2012, 09:04 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
I'd run:

# cd /mnt/lfs/tools
# tar -cvjf /root/backup_tools.tar.bz2 .

Don't forget the period at the end of the tar command to backup the current directory.
 
Old 09-19-2012, 01:15 AM   #3
k84834
Member
 
Registered: Aug 2012
Posts: 142

Original Poster
Rep: Reputation: Disabled
are you use again /tools backup to construct another lfs ?
I want to construct lfs7.2 with /tools from lfs7.1
up to now, I build just lfs7.1, and enjoy to build again lfs to overcome its contents. I want to use /tools from lfs7.1 to build lfs7.2 . please help me how to transfer this directory that the symlinks and permissions and other attr be saved.

Quote:
kilgoretrout
I'd run:

# cd /mnt/lfs/tools
# tar -cvjf /root/backup_tools.tar.bz2 .

Don't forget the period at the end of the tar command to backup the current directory.
how are you untar backup_tools.tar.bz2 and transfer it to new lfs partition?
 
Old 09-19-2012, 02:32 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by k84834 View Post
are you use again /tools backup to construct another lfs ?
I want to construct lfs7.2 with /tools from lfs7.1
2 points you might be interested in:

- Did you finish LFS 7.1 and do you now want to use $LFS/tools to build another LFS? You can't (you should have made a backup at the end of chapter 5)
- You seem to want to use the $LFS/tools you build for LFS 7.1 to build LFS 7.2? You can't (not the same book version)

Both are mentioned right here: http://www.linuxfromscratch.org/lfs/...gingowner.html
 
  


Reply



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
chroot: cannot run command `/tools/bin/env': No such file or directory Basel Linux From Scratch 10 06-09-2018 02:15 PM
Backup Tools j3nn1 Linux - Newbie 3 05-03-2008 08:08 PM
Backup tools Fill Linux - Software 2 06-30-2007 03:02 AM
/tools/bin/env: /tools/bin/bash: No such file or directory DaZjorz Linux From Scratch 21 07-27-2005 07:11 AM
Backup tools jpc82 Linux - Software 1 07-15-2002 11:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 10:49 AM.

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