I3 to Sway #1

Merged
dbroqua merged 112 commits from gentoo-sway into master 2021-10-21 21:40:49 +02:00
Showing only changes of commit 1999acf33d - Show all commits

View File

@ -48,7 +48,6 @@ DEST_USB="/mnt/backup/${HOSTNAME}/dbroqua/"
# SSHFS
DEST_SSHFS="storage:Backup/${HOSTNAME}/dbroqua/"
echo `date` > ${ORIG}/lastBackup
while getopts t:h opt
do
@ -71,7 +70,6 @@ do
esac
done
echo "Method: ${TYPE}" >> ${ORIG}/lastBackup
if [ "${TYPE}" != '' ] ; then
case ${TYPE} in
@ -91,3 +89,14 @@ if [ "${TYPE}" != '' ] ; then
esac
fi
echo $?
if [ $? == 0 ] ; then
echo `date` > ${ORIG}/lastBackup
echo "Method: ${TYPE}" >> ${ORIG}/lastBackup
rm ${ORIG}/lastFailBackup
else
echo `date` > ${ORIG}/lastFailBackup
echo "Method: ${TYPE}" >> ${ORIG}/lastFailBackup
fi