mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-21 19:52:52 +00:00
Add 7.13 - Create backup
This commit is contained in:
parent
219c144f8c
commit
6dbbca5582
1 changed files with 16 additions and 0 deletions
16
scripts/chapter7/7.13-backup.sh
Normal file
16
scripts/chapter7/7.13-backup.sh
Normal file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
rm -rf /usr/share/{info,man,doc}/*
|
||||
|
||||
find /usr/{lib,libexec} -name \*.la -delete
|
||||
|
||||
rm -rf /tools
|
||||
|
||||
exit
|
||||
|
||||
umount $LFS/dev/pts
|
||||
umount $LFS/{sys,proc,run,dev}
|
||||
|
||||
cd $LFS
|
||||
tar -cJpf $HOME/lfs-temp-tools-11.2.tar.xz .
|
||||
|
Loading…
Reference in a new issue