mirror of
https://github.com/brunofontes/linuxShortcuts.git
synced 2024-11-23 22:30:51 +00:00
Adding Gitea to backup
This commit is contained in:
parent
42344f98a5
commit
8fe43eb404
@ -17,6 +17,9 @@ sleep 60
|
|||||||
# Backup OXO
|
# Backup OXO
|
||||||
/bin/rsync --archive --rsh=ssh oxo:~/OXOwebsiteBackup.tar.gz ~/Backups/OXOwebsite/`date '+%Y-%m-%d'`_OXOwebsiteBackup.tar.gz
|
/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
|
# Delete old backups
|
||||||
find $CONTABO_BACKUP_PATH/db -type f -name "*.sql.gz" -mtime +15 -delete
|
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/keys -type f -name "*.*" -mtime +15 -delete
|
||||||
|
Loading…
Reference in New Issue
Block a user