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 # SSHFS
DEST_SSHFS="storage:Backup/${HOSTNAME}/dbroqua/" DEST_SSHFS="storage:Backup/${HOSTNAME}/dbroqua/"
echo `date` > ${ORIG}/lastBackup
while getopts t:h opt while getopts t:h opt
do do
@ -71,7 +70,6 @@ do
esac esac
done done
echo "Method: ${TYPE}" >> ${ORIG}/lastBackup
if [ "${TYPE}" != '' ] ; then if [ "${TYPE}" != '' ] ; then
case ${TYPE} in case ${TYPE} in
@ -91,3 +89,14 @@ if [ "${TYPE}" != '' ] ; then
esac esac
fi 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