Score:0

btrbk not taking hourly snapshots

in flag

I have installed btrbk and I would like hourly snapshots to be taken. However, only daily snapshots are done. I wonder what goes wrong.

Pleas help me out.

Environment: OS: Ubuntu 23.04 64bit / Linux 6.2.0-26-generic btrbk version: 0.32.5

$ cat /etc/btrbk/btrbk.conf
transaction_log            /var/log/btrbk.log
timestamp_format           long

snapshot_dir               _btrbk_snapshots
snapshot_create            always
incremental                yes
preserve_hour_of_day       0
preserve_day_of_week       sunday
snapshot_preserve_min      48h
snapshot_preserve          48h 7d 10w
target_preserve            24h 7d 10w
lockfile                   /var/lock/btrbk.lock

volume /mnt/btrbk_pool
  snapshot_dir _btrbk_snapshots

  subvolume /
  subvolume docker
  subvolume docker/nextcloud/data
    snapshot_name nextcloud_data
$ cat /etc/cron.hourly/btrbk 
#!/bin/sh
exec /usr/bin/btrbk -q run

And the log: https://pastebin.com/ZWAE8DDB (I find it too long to be posted as plain text. Sorry.)

djdomi avatar
za flag
try to use roots crontab for a crossover test. `crontab -e -u root` and insert `@hourly <your command here>` and see if it's working native text logs should be posted directly instead
Score:0
in flag

I have realized the problem is the incorrect permissions of the /etc/cron.hourly/btrbk file. It lacks executable permission for the owner (root). It works fine with the permissions fixed.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.