mirror of
https://github.com/brunofontes/linuxShortcuts.git
synced 2024-11-23 21:20:50 +00:00
feat: adding ntfy to backup scripts
This commit is contained in:
parent
79860803ee
commit
108e82c07a
@ -133,7 +133,8 @@ echo -e "${green}`date +%r` - Backup finished. Please, verify your log files.\e[
|
||||
echo "$ActiveDisk" > .lastDisk
|
||||
|
||||
# /usr/bin/curl -d "Backup HD: Completed" ntfy.sh/bft >/dev/null 2>&1 &
|
||||
/home/bruno/Apps/linuxShortcuts/ntfy.sh -t "Michelle Backup Completed!" a "floppy_disk" "Close the window and remove the disk..." >/dev/null 2>&1 &
|
||||
/home/bruno/Apps/linuxShortcuts/ntfy.sh --title "Michelle Backup Completed\!" --tags "floppy_disk" "Close the window and remove the disk..." >/dev/null 2>&1 &
|
||||
|
||||
kdialog --title "Backup Complete" --msgbox "Backup finished successfully"
|
||||
echo
|
||||
echo "Backup on $device is finished. Press any key to close..."
|
||||
|
@ -1 +1 @@
|
||||
1
|
||||
2
|
||||
|
@ -13,14 +13,17 @@ if [[ -z $CONTABO_BACKUP_PATH ]]; then
|
||||
fi
|
||||
sleep 60
|
||||
|
||||
ntfy="/home/bruno/Apps/linuxShortcuts/ntfy.sh --title Backup"
|
||||
OXO_PATH="/home/bruno/Backups/OXOwebsite/"
|
||||
|
||||
# Backup Contabo
|
||||
echo "Backuping Contabo..."
|
||||
ntfy "Starting Contabo..."
|
||||
/bin/rsync --archive --backup --exclude "files/nextcloud*" --rsh=ssh backupContabo:/home/bruno/backups/* $CONTABO_BACKUP_PATH
|
||||
|
||||
# Backup Gitea
|
||||
echo "Backuping Gitea..."
|
||||
ntfy "Starting GoogleMicro..."
|
||||
/bin/rsync --archive --backup --rsh=ssh bkpgitea:/home/brunofontes/ttt/ /home/bruno/Backups/gitea/
|
||||
|
||||
# Backup OXO Files
|
||||
@ -52,3 +55,4 @@ find $CONTABO_BACKUP_PATH/mail -type f -name "*.*" -mtime +20 -delete
|
||||
find $CONTABO_BACKUP_PATH/ -type f -name "*.*" -mtime +120 -delete
|
||||
|
||||
find /home/bruno/Backups/gitea/ -type f -name "*.zip" -mtime +15 -delete
|
||||
ntfy "Websites Backup Finished"
|
||||
|
Loading…
Reference in New Issue
Block a user