LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   is this command right for backup the tools directory ? (http://www.linuxquestions.org/questions/linux-from-scratch-13/is-this-command-right-for-backup-the-tools-directory-4175427766/)

k84834 09-18-2012 01:32 AM

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

kilgoretrout 09-18-2012 09:04 AM

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.

k84834 09-19-2012 01:15 AM

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?

druuna 09-19-2012 02:32 AM

Quote:

Originally Posted by k84834 (Post 4783904)
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


All times are GMT -5. The time now is 03:55 AM.