Compare commits

..

No commits in common. "b926a7c2b4e0cd5afbe511fcc09b76239f4f4568" and "8fe43eb4042f2765c948cbe87c7486074d21235c" have entirely different histories.

5 changed files with 9 additions and 33 deletions

View File

@ -20,7 +20,7 @@ set -e
s -v
bold "Updating..."
yay -Syu --sudoloop --answerclean none --answerdiff all --answerupgrade none --noremovemake --nobatchinstall --cleanafter]]
yay -Syu --sudoloop --noconfirm --nobatchinstall --cleanafter
bold "Cleaning stuff..."
s -v

View File

@ -12,27 +12,20 @@ fi
sleep 60
# Backup Contabo
/bin/rsync --archive --backup --exclude "files/nextcloud*" --rsh=ssh backupContabo:/home/bruno/backups/* $CONTABO_BACKUP_PATH
/bin/rsync --archive --exclude "files/nextcloud*" --rsh=ssh backupContabo:/home/bruno/backups/* $CONTABO_BACKUP_PATH
# Backup OXO
/bin/rsync --archive --rsh=ssh oxo:~/OXOwebsiteBackup.tar.gz ~/Backups/OXOwebsite/`date '+%Y-%m-%d'`_OXOwebsiteBackup.tar.gz
# Backup Gitea
/bin/rsync --archive --backup --rsh=ssh bkpgitea:~/ttt/* ~/Backups/gitea/
# Backup OXO Files
/bin/rsync --archive --backup --rsh=ssh oxo:~/public_html ~/Backups/OXOwebsite/
tar cfz ~/Backups/OXOwebsite/`date '+%Y-%m-%d'`_OXOwebsiteBackup.tar.gz ~/Backups/OXOwebsite/public_html/
rm -rf ~/Backups/OXOwebsite/public_html/
# Backup OXO DB
ssh oxo ./backupDB.sh
/bin/rsync --archive --backup --compress --rsh=ssh oxo:~/db/* ~/Backups/OXOwebsite/
ssh oxo rm ./db/*
/bin/rsync --archive --rsh=ssh googlemicro:~/ttt/*.zip ~/Backups/gitea/`date '+%Y-%m-%d'`_gitea.zip
# Delete old backups
find $CONTABO_BACKUP_PATH/db -type f -name "*.sql.gz" -mtime +15 -delete
find $CONTABO_BACKUP_PATH/keys -type f -name "*.*" -mtime +15 -delete
find $CONTABO_BACKUP_PATH/files -type f -name "*.*" -mtime +35 -delete
find $CONTABO_BACKUP_PATH/mail -type f -name "*.*" -mtime +20 -delete
find $CONTABO_BACKUP_PATH/ -type f -name "*.*" -mtime +120 -delete
find ~/Backups/OXOwebsite/ -type f -name "*.gz" -mtime +15 -delete
find ~/Backups/gitea/ -type f -name "*.zip" -mtime +15 -delete
find ~/Backups/OXOwebsite/ -type f -name "*.sql.gz" -mtime +15 -delete

View File

@ -1,7 +0,0 @@
[Unit]
Description=Mailbox synchronization service
[Service]
Type=oneshot
ExecStart=/usr/bin/mbsync -Va
ExecStartPost=/home/bruno/dotfiles/mutt/notmuch-hook.sh

View File

@ -1,10 +0,0 @@
[Unit]
Description=Mailbox synchronization timer
[Timer]
OnBootSec=2m
OnUnitActiveSec=5m
Unit=mbsync.service
[Install]
WantedBy=timers.target

View File

@ -38,7 +38,7 @@ tmux rename-window -t dashboard:2 gomuks
# 3 - NeoMutt
tmux new-window -t dashboard
sleep 1
tmux send -t dashboard:3.0 $'sleep 120 && neomutt\n'
tmux send -t dashboard:3.0 $'neomutt\n'
tmux rename-window -t dashboard:3 neomutt
# 4 - Joplin