Change to mkdir -p. Add .cache folder
This commit is contained in:
parent
adaf74a7b4
commit
1a34bf17e8
@ -23,20 +23,16 @@ fi
|
|||||||
echo Removing old backup
|
echo Removing old backup
|
||||||
rm -rf ~/old_dat
|
rm -rf ~/old_dat
|
||||||
|
|
||||||
#make new directory
|
# make new backup
|
||||||
echo Creating backup
|
echo Creating backup
|
||||||
mkdir ~/old_dat
|
mkdir -p ~/old_dat/.config || echo Directory already exists
|
||||||
|
mkdir -p ~/old_dat/.doom.d || echo Directory already exists
|
||||||
|
mkdir -p ~/old_dat/.easystroke || echo Directory already exists
|
||||||
|
mkdir -p ~/old_dat/.mozilla || echo Directory already exists
|
||||||
|
mkdir -p ~/old_dat/scripts || echo Directory already exists
|
||||||
|
|
||||||
# make subdirectories
|
# make subdirectories
|
||||||
mkdir ~/old_dat/.config || echo Directory already exists
|
mkdir -p ~/old_dat/.local/share || echo Directory already exists
|
||||||
mkdir ~/old_dat/.doom.d || echo Directory already exists
|
|
||||||
mkdir ~/old_dat/.easystroke || echo Directory already exists
|
|
||||||
mkdir ~/old_dat/.local || echo Directory already exists
|
|
||||||
mkdir ~/old_dat/.mozilla || echo Directory already exists
|
|
||||||
mkdir ~/old_dat/scripts || echo Directory already exists
|
|
||||||
|
|
||||||
# make subsubdirectories
|
|
||||||
mkdir ~/old_dat/.local/share || echo Directory already exists
|
|
||||||
|
|
||||||
##############################
|
##############################
|
||||||
# back stuff up
|
# back stuff up
|
||||||
@ -87,6 +83,9 @@ echo Copied files
|
|||||||
#copy scripts
|
#copy scripts
|
||||||
cp -r ~/config/scripts/ ~/
|
cp -r ~/config/scripts/ ~/
|
||||||
|
|
||||||
|
# copy cache
|
||||||
|
cp -r ~/config/.cache ~/
|
||||||
|
|
||||||
#copy stuff to /etc
|
#copy stuff to /etc
|
||||||
sudo cp -r ~/config/etc /
|
sudo cp -r ~/config/etc /
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user