Detect if LOCAL_BACKUP_DIR is not on / #41
Labels
No Label
bkctld
bug
duplicate
enhancement
invalid
question
wontfix
zzz_evobackup
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: evolix/evobackup#41
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Sometimes we use
/home/backup
mounted on a special block device dedicated to backup. Often simply/home
partition.But, if the mount point is not mounted, and there is no
/home
partition,/home/backup
will be a folder on the root/
partition.We should detect that, example:
We can see that
/home/backup
is in fact/
.If we detect that, we should not do any
LOCAL_TASKS
and echo an error message that will appear in the cron output.Internal reference: https://redmine.evolix.net/issues/4733
Sur Linux on peut faire
stat -c '%m' /home/backup
et voir si ça retourne/
.Sur OpenBSD
stat -f '%Sd' /home/backup
.On fait ça dans evomaintenance : https://gitea.evolix.org/evolix/evomaintenance/src/branch/master/evomaintenance.sh#L177