1 (edited by KJ7RRV 2021-12-05 11:26:30)

Topic: [SOLVED] Are my backups complete?

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.3.2 MARIADB edition.
- Deployed with iRedMail Easy or the downloadable installer? Downloadable installer
- Linux/BSD distribution name and version: Ubuntu 20.04 (upgraded from 18.04)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
I am migrating my iRedMail installation to a new server. I will lose access to the existing server before I can set up the new one, so I am concerned with being 100% sure my backups are complete before continuing.
`crontab -l -u root` gives this:

root@kj7rrv:~# crontab -l -u root
30   3   *   *   *   /bin/bash /var/vmail/backup/backup_mysql.sh

# iRedAPD: Clean up expired tracking records hourly.
1   *   *   *   *   python3 /opt/iredapd/tools/cleanup_db.py >/dev/null

# iRedAPD: Convert SPF DNS record of specified domain names to IP
#          addresses/networks hourly.
2   *   *   *   *   python3 /opt/iredapd/tools/spf_to_greylist_whitelists.py >/dev/null

# iRedMail: Cleanup Amavisd database
1   2   *   *   *   python3 /opt/www/iredadmin/tools/cleanup_amavisd_db.py >/dev/null

# iRedAdmin: Clean up sql database.
1   *   *   *   *   python3 /opt/www/iredadmin/tools/cleanup_db.py >/dev/null 2>&1

# iRedAdmin: Delete mailboxes on file system which belong to removed accounts.
1   *   *   *   *   python3 /opt/www/iredadmin/tools/delete_mailboxes.py
# iRedMail: Backup SOGo data databases on 04:01AM
1   4   *   *   *   /bin/bash /var/vmail/backup/backup_sogo.sh

# Fail2ban: Unban IP addresses pending for removal (stored in SQL db).
* * * * * /bin/bash /usr/local/bin/fail2ban_banned_db unban_db

# Renew certs
1   3   *   *   *   certbot renew --post-hook 'systemctl restart postfix; systemctl restart dovecot; systemctl restart nginx'


Is just backing up /var/vmail sufficient?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: [SOLVED] Are my backups complete?

KJ7RRV wrote:

30   3   *   *   *   /bin/bash /var/vmail/backup/backup_mysql.sh

This cron job backs up SQL databases.

KJ7RRV wrote:

Is just backing up /var/vmail sufficient?

Yes.

BTW, you may want to backup modified config files (modified by yourself) too.

3

Re: [SOLVED] Are my backups complete?

ZhangHuangbin wrote:
KJ7RRV wrote:

30   3   *   *   *   /bin/bash /var/vmail/backup/backup_mysql.sh

This cron job backs up SQL databases.

KJ7RRV wrote:

Is just backing up /var/vmail sufficient?

Yes.

BTW, you may want to backup modified config files (modified by yourself) too.

Thank you! So if I just back up /etc in addition to what I already have, that will save the config files?

4

Re: [SOLVED] Are my backups complete?

KJ7RRV wrote:

So if I just back up /etc in addition to what I already have, that will save the config files?

Not exactly.
Some applications don't store config files under /etc/. For example, /opt/ stores some applications and they store their config files under /opt/ too.

5

Re: [SOLVED] Are my backups complete?

Oh okay, thank you! I'll back those up too. Thanks again for your help!