Create debian-bullseye_pt3.sh

This commit is contained in:
fithwum
2021-08-22 06:22:08 -07:00
parent fbf995c34e
commit 544128ce0c

View File

@@ -0,0 +1,33 @@
#!/bin/bash
# Copyright (c) 2018 fithwum
# All rights reserved
echo " "
echo "INFO ! Cleaning up pt2 of script from base image."
rm -frv /debian-bullseye/debian-bullseye_pt2.sh
sleep 1
echo " "
echo "INFO ! Base image size after cleanup."
du --human-readable --summarize debian-bullseye
sleep 10
echo " "
echo "INFO ! Creating base image archive."
echo "INFO ! This may take some time."
tar -cjf debian-bullseye.tar.bz2 --directory debian-bullseye .
sleep 1
echo " "
echo "INFO ! Base image archive."
du --human-readable --summarize debian-bullseye.tar.bz2
sleep 10
echo " "
echo "INFO ! Uploading image to ftp server."
ftp-upload -v -h {IP}:{PORT} -u {USER} --password {PASSWORD} -d /mnt/user/FTP debian-bullseye.tar.bz2
sleep 1
echo " "
echo "INFO ! Removing temp files."
rm -fr debian-bullseye
rm -frv debian-bullseye.tar.bz2
echo " "
echo "INFO ! Done."
echo " "
exit