Adding Gitea to backup

This commit is contained in:
Bruno F. Fontes 2022-02-01 21:45:08 -03:00
parent 42344f98a5
commit 8fe43eb404

View File

@ -17,6 +17,9 @@ sleep 60
# 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 --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