Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tarball-incremental method doesn't apply BM_ARCHIVE_CHMOD to *.incremental.bin #39

Closed
Niluge-KiWi opened this issue Jan 14, 2014 · 0 comments

Comments

@Niluge-KiWi
Copy link

With "tarball-incremental" method, it generates *.tar.gz and *.incremental.bin files. The tar.gz files are chmod'ed with BM_ARCHIVE_CHMOD if BM_REPOSITORY_SECURE is true; but not the incremental.bin ones.

By default it has -rw------- permissions, which will fail remote backup when pulling the archives to another location with a dedicated user.

Temporary fix:
Create a /home/backup/fix-perms.sh script:

#!/bin/bash
chown root:backup /home/backup/*.incremental.bin && chmod g+r /home/backup/*.incremental.bin

Then, in /etc/backup-manager.conf:

export BM_POST_BACKUP_COMMAND="/home/backup/fix-perms.sh"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants