Explicitly disabled one_file_system and read_special options are seen as true #408

Closed
opened 2021-04-03 12:38:59 +00:00 by Bubbelb · 3 comments

What I'm trying to do and why

I have a backup config, that explicityly states that options one_file_system and read_special should be false, since I want no special files and I want to have the BTRFS subvolumes included.

Steps to reproduce (if a bug)

location:
  source_directories:
    - /mnt/hdd/@userdata
    - /mnt/hdd/@archive
  repositories:
    - /mnt/backup/borg-local/userdata
  one_file_system: false
  read_special: false 
  exclude_caches: true
  exclude_if_present:
    - .nobackup

storage:
  compression: zstd,11
  lock_wait: 5
  archive_name_format: 'userdata-{now:%Y-%m-%dT%H:%M:%S}'

retention:
  keep_within: 72H   
  # keep_secondly: 60
  # keep_minutely: 60
  keep_hourly: 336
  keep_daily: 14  
  keep_weekly: 4 
  keep_monthly: 0    
  keep_yearly: 0  
  prefix: userdata
                    
consistency:
  checks:
    - repository    
    - archives   
  check_last: 5
  prefix: userdata

hooks:
  mysql_databases:
    - name: all
    ...
    ...

Include (sanitized) borgmatic configuration files if applicable.

Actual behavior (if a bug)

ps -aux shows the following command line for borg:

usr/bin/python 
/usr/bin/borg create
   --exclude-caches
   --exclude-if-present .nobackup
   --compression zstd,11
   --one-file-system
   --read-special
   --lock-wait 5
   --info /mnt/backup/borg-local/userdata::userdata-{now:%Y-%m-%dT%H:%M:%S} 
   /mnt/btrfs-hdd/@archive/...

Of course, this output had some tidying for readability...

Expected behavior (if a bug)

both options should not be added to the borg command line.

Other notes / implementation ideas

Environment

borgmatic version: 1.5.12

borgmatic installation method: Archlinux pacman

Borg version: 1.1.15

Python version: 3.9.2

Database version (if applicable): n/a

operating system and version: Archlinux

#### What I'm trying to do and why I have a backup config, that explicityly states that options one_file_system and read_special should be false, since I want no special files and I want to have the BTRFS subvolumes included. #### Steps to reproduce (if a bug) ``` location: source_directories: - /mnt/hdd/@userdata - /mnt/hdd/@archive repositories: - /mnt/backup/borg-local/userdata one_file_system: false read_special: false exclude_caches: true exclude_if_present: - .nobackup storage: compression: zstd,11 lock_wait: 5 archive_name_format: 'userdata-{now:%Y-%m-%dT%H:%M:%S}' retention: keep_within: 72H # keep_secondly: 60 # keep_minutely: 60 keep_hourly: 336 keep_daily: 14 keep_weekly: 4 keep_monthly: 0 keep_yearly: 0 prefix: userdata consistency: checks: - repository - archives check_last: 5 prefix: userdata hooks: mysql_databases: - name: all ... ... ``` Include (sanitized) borgmatic configuration files if applicable. #### Actual behavior (if a bug) ps -aux shows the following command line for borg: ``` usr/bin/python /usr/bin/borg create --exclude-caches --exclude-if-present .nobackup --compression zstd,11 --one-file-system --read-special --lock-wait 5 --info /mnt/backup/borg-local/userdata::userdata-{now:%Y-%m-%dT%H:%M:%S} /mnt/btrfs-hdd/@archive/... ``` Of course, this output had some tidying for readability... #### Expected behavior (if a bug) both options should not be added to the borg command line. #### Other notes / implementation ideas #### Environment **borgmatic version:** 1.5.12 **borgmatic installation method:** Archlinux pacman **Borg version:** 1.1.15 **Python version:** 3.9.2 **Database version (if applicable):** n/a **operating system and version:** Archlinux
Author

Duh. Did an update to the latest version (didn't realize i wasn't using the latest one) and all works well again...

Duh. Did an update to the latest version (didn't realize i wasn't using the latest one) and all works well again...
Author

...Was the MySQL hook...

...Was the MySQL hook...
Owner

Glad you've got it figured out! Yeah, the database hooks turn on those options so that it can stream the database dump directly to Borg.

Glad you've got it figured out! Yeah, the database hooks turn on those options so that it can stream the database dump directly to Borg.
witten added the
question / support
label 2021-04-03 15:50:20 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: borgmatic-collective/borgmatic#408
No description provided.