bad backups weekly and monthly but not daily when there are no permissions

7 views
Skip to first unread message

Iker Echaniz

unread,
May 29, 2023, 11:01:41 AM5/29/23
to elkarbac...@googlegroups.com

Hi:


I found an incorrect behavior in Elkarbackup.


I am using the docker image:

 elkarbackup:
    image: elkarbackup/elkarbackup:2.1.0


I am backing up a moodle directory and one file doesn't have permissions for my elkarbackup user.

The Daily backups fail as they should. But Weekly and Monthly backups don't fail and give a STATUS OK

example:

2023-05-28 10:43:39 INFO StatusReport
OK

I usually don't check the backups and they seem to be ok when they actually are not because the file without permissions is not copied and the resulting message is OK.


eu-moodle-f446dc4d6-skkw9:~$ cd /bitnami/moodle
eu-moodle-f446dc4d6-skkw9:/bitnami/moodle$ ls -lh config*
-rw-rw-r--    1 bin      root       58.2K May 25  2021 config-dist.php
-rw-rw----    1 bin      root         982 May 25  2021 config.php


The executed commands seem to be the same but the cfg file might be different and I don't know where to look for it. Is seems to be a tmp file generated elsewhere.

Running "/usr/bin/rsnapshot" -c "/app/tmp/rsnapshot.41_81.cfg" Weekly 2>&1

Running "/usr/bin/rsnapshot" -c "/app/tmp/rsnapshot.41_81.cfg" Daily 2>&1

Best regards,

Iker De Echaniz.

Iker De Echaniz

unread,
May 31, 2023, 3:39:37 AM5/31/23
to elkarbackup-users
I found why it happens. It turns out it is the expected behavior documented here https://docs.elkarbackup.org/docs/policies-schedule.html

Elkarbackup uses rsnapshot and it doesn't copy files from the source at the weekly and monthly backups. It rotates the previous daily with whatever it has been able to backup.
Reply all
Reply to author
Forward
0 new messages