First commit

This commit is contained in:
Git Commiter for 96-fromsofia.net 2023-02-27 01:32:59 +00:00
commit 54de5672a5
2 changed files with 11 additions and 0 deletions

1
README.txt Normal file
View File

@ -0,0 +1 @@
Simple scrtip to maintain 2 daily copies of mailcow backups.

10
mailcow-smpl-bak.sh Normal file
View File

@ -0,0 +1,10 @@
#!/bin/bash
# Remove oldest backup
rm -rf /mnt/backup_old/*
Make yesterday's backup the oldest backup
mv /mnt/backup/* /mnt/backup_old/
sync
# Create today's backup
cd /opt/mailcow-dockerized
MAILCOW_BACKUP_LOCATION=/mnt/backup /opt/mailcow-dockerized/helper-scripts/backup_and_restore.sh backup crypt redis rspamd postfix mysql
exit 0