Topic: backup script
==== Required information ====
- iRedMail version: 0.8.7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: Ubuntu 14.04
- Related log if you're reporting an issue:
====
The daily backup script gives some strange output:
bzip2: Output file /var/vmail/backup/mysql/2014/11/23/mysql-2014.11.23.03.30.01.sql.bz2 already exists.
bzip2: Output file /var/vmail/backup/mysql/2014/11/23/vmail-2014.11.23.03.30.01.sql.bz2 already exists.
bzip2: Output file /var/vmail/backup/mysql/2014/11/23/roundcubemail-2014.11.23.03.30.01.sql.bz2 already exists.
bzip2: Output file /var/vmail/backup/mysql/2014/11/23/iredadmin-2014.11.23.03.30.01.sql.bz2 already exists.
==> Backup completed successfully.
==> Detailed log (/var/vmail/backup/mysql/2014/11/23/2014.11.23.03.30.01.log):
=========================
* Starting backup: 2014.11.23.03.30.01.
* Backup directory: /var/vmail/backup/mysql/2014/11/23.
* Backing up databases ...
- roundcubemail [DONE]
- iredadmin [DONE]
- mysql [DONE]
- vmail [DONE]
- mysql [DONE]
- vmail [DONE]
- cluebringer [DONE]
- amavisd [DONE]
- roundcubemail [DONE]
- iredadmin [DONE]
* File size:
----
20K /var/vmail/backup/mysql/2014/11/23/amavisd-2014.11.23.03.30.01.sql.bz2
8.0K /var/vmail/backup/mysql/2014/11/23/cluebringer-2014.11.23.03.30.01.sql.bz2
8.0K /var/vmail/backup/mysql/2014/11/23/iredadmin-2014.11.23.03.30.01.sql
4.0K /var/vmail/backup/mysql/2014/11/23/iredadmin-2014.11.23.03.30.01.sql.bz2
528K /var/vmail/backup/mysql/2014/11/23/mysql-2014.11.23.03.30.01.sql
104K /var/vmail/backup/mysql/2014/11/23/mysql-2014.11.23.03.30.01.sql.bz2
56K /var/vmail/backup/mysql/2014/11/23/roundcubemail-2014.11.23.03.30.01.sql
12K /var/vmail/backup/mysql/2014/11/23/roundcubemail-2014.11.23.03.30.01.sql.bz2
20K /var/vmail/backup/mysql/2014/11/23/vmail-2014.11.23.03.30.01.sql
4.0K /var/vmail/backup/mysql/2014/11/23/vmail-2014.11.23.03.30.01.sql.bz2
----
* Backup completed (Success? YES).
------------------
It says SUCCESS - I am just wondering why it says several files already exists, and furthermore if all files are zipped and duplicates removed.
In the backup dir I have the following files:
root@mail:/var/vmail/backup/mysql/2014/11/23# ls -l
total 768
-rw-r--r-- 1 root root 1135 Nov 23 03:30 2014.11.23.03.30.01.log
-rw-r--r-- 1 root root 16550 Nov 23 03:30 amavisd-2014.11.23.03.30.01.sql.bz2
-rw-r--r-- 1 root root 5386 Nov 23 03:30 cluebringer-2014.11.23.03.30.01.sql.bz2
-rw-r--r-- 1 root root 6209 Nov 23 03:30 iredadmin-2014.11.23.03.30.01.sql
-rw-r--r-- 1 root root 2060 Nov 23 03:30 iredadmin-2014.11.23.03.30.01.sql.bz2
-rw-r--r-- 1 root root 539399 Nov 23 03:30 mysql-2014.11.23.03.30.01.sql
-rw-r--r-- 1 root root 104523 Nov 23 03:30 mysql-2014.11.23.03.30.01.sql.bz2
-rw-r--r-- 1 root root 56771 Nov 23 03:30 roundcubemail-2014.11.23.03.30.01.sql
-rw-r--r-- 1 root root 9991 Nov 23 03:30 roundcubemail-2014.11.23.03.30.01.sql.bz2
-rw-r--r-- 1 root root 20256 Nov 23 03:30 vmail-2014.11.23.03.30.01.sql
-rw-r--r-- 1 root root 2938 Nov 23 03:30 vmail-2014.11.23.03.30.01.sql.bz2
root@mail:/var/vmail/backup/mysql/2014/11/23#
Best regards,
Henrik
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.