LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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,298

Rep: Reputation: 138Reputation: 138
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: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
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


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
Backup Tools j3nn1 Linux - Newbie 3 05-03-2008 08:08 PM
Backup tools Fill Linux - Software 2 06-30-2007 03:02 AM
chroot: cannot run command `/tools/bin/env': No such file or directory Basel Linux From Scratch 5 06-30-2006 03:00 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


All times are GMT -5. The time now is 11:27 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