Comments (6)
Maybe try a full path instead?
from btrbk.
Maybe try a full path instead?
Sorry about the delay.
I imagine that is a bug since it is putting the backups inside and outside that volume. Trying with the full path gives me errors since /btrfs_pool is already at / and /btrfs_pool/btrbk_snapshots will point to a folder inside that sub-volume.
WARNING: Skipping subvolume "/btrfs_pool/btrbk_snapshots/home": Failed to fetch subvolume detail
WARNING: ... Command execution failed (exitcode=1)
WARNING: ... sh: readlink -v -e '/btrfs_pool/btrbk_snapshots/home'
WARNING: ... readlink: /btrfs_pool/btrbk_snapshots/home: No such file or directory
WARNING: Skipping subvolume "/btrfs_pool/btrbk_snapshots/root": Failed to fetch subvolume detail
WARNING: ... Command execution failed (exitcode=1)
WARNING: ... sh: readlink -v -e '/btrfs_pool/btrbk_snapshots/root'
WARNING: ... readlink: /btrfs_pool/btrbk_snapshots/root: No such file or directory
WARNING: Skipping subvolume "/btrfs_pool/btrbk_snapshots/home": Failed to fetch subvolume detail
WARNING: Skipping subvolume "/btrfs_pool/btrbk_snapshots/root": Failed to fetch subvolume detail
TRANSACTION LOG
---------------
TYPE STATUS TARGET_SUBVOLUME SOURCE_SUBVOLUME PARENT_SUBVOLUME
startup v0.32.6 - - -
abort_subvolume ABORT /btrfs_pool/btrbk_snapshots/home - -
abort_subvolume ABORT /btrfs_pool/btrbk_snapshots/root - -
abort_subvolume ABORT /btrfs_pool/btrbk_snapshots/home - -
abort_subvolume ABORT /btrfs_pool/btrbk_snapshots/root - -
finished partial -
from btrbk.
My system is using a /home and /root btrfs subvolumes structure. I mount subvolid=5 in /btrbk_pool for the snapshots.
❯ tree -dx /btrfs_pool/
/btrfs_pool/
├── btrbk_snapshots
│ ├── home.20240122T180001-0300
│ ├── home.20240123T000002-0300
│ ├── home.20240124T000002-0300
│ ├── home.20240124T020001-0300
│ ├── root.20240122T180001-0300
│ ├── root.20240123T000002-0300
│ ├── root.20240124T000002-0300
│ └── root.20240124T020001-0300
├── home
├── home.20240122T180001-0300
├── home.20240123T000002-0300
├── home.20240124T000002-0300
├── home.20240124T020001-0300
├── root
├── root.20240122T180001-0300
├── root.20240123T000002-0300
├── root.20240124T000002-0300
└── root.20240124T020001-0300
20 directories
My timemachine.conf file
# Globals (??)
transaction_log /var/log/btrbk_timemachine.log
lockfile /var/lock/btrbk_timemachine.lock
timestamp_format long-iso
backend_local_user btrfs-progs-doas
#stream_buffer 64m
btrfs_commit_delete yes
#
# Snapshots rules
snapshot_preserve_min latest
snapshot_preserve 3d 1w
# Set archiving rules
archive_preserve_min latest
archive_preserve 6d 4w 6m
incremental_prefs "defaults,sao,san,aro,arn"
incremental_clones yes
incremental yes
#preserve_hour_of_day 0
#preserve_day_of_week sunday
# Where the subvolumes are
# home/personal data
volume /btrfs_pool
group fullsystem
snapshot_dir btrbk_snapshots
snapshot_create onchange
subvolume home
subvolume root
# Archive
# Backups destination
volume /btrfs_pool
group fullsystem
snapshot_create onchange
# snapshot_dir btrbk_snapshots
target_preserve_min latest
target_preserve 6d 3w 2m
subvolume home
subvolume root
target send-receive /btrbk_backups/
Running it for testing purposes:
❯ doas btrbk dryrun --config=/home/marcelo/Projects/rest-o/btrbk_timemachine.conf --progress --format=table
TRANSACTION LOG
---------------
TYPE STATUS TARGET_SUBVOLUME SOURCE_SUBVOLUME PARENT_SUBVOLUME
startup v0.32.6 - - -
snapshot dryrun_success /btrfs_pool/btrbk_snapshots/home.20240125T104616-0300 /btrfs_pool/home -
snapshot dryrun_success /btrfs_pool/btrbk_snapshots/root.20240125T104616-0300 /btrfs_pool/root -
snapshot dryrun_success /btrfs_pool/home.20240125T104616-0300 /btrfs_pool/home -
snapshot dryrun_success /btrfs_pool/root.20240125T104616-0300 /btrfs_pool/root -
send-receive dryrun_success /btrbk_backups/root.20240125T104616-0300 /btrfs_pool/root.20240125T104616-0300 /btrfs_pool/root.20240124T000002-0300
delete_snapshot dryrun_success /btrfs_pool/btrbk_snapshots/home.20240124T020001-0300 - -
delete_snapshot dryrun_success /btrfs_pool/btrbk_snapshots/root.20240124T020001-0300 - -
delete_snapshot dryrun_success /btrfs_pool/home.20240124T020001-0300 - -
delete_snapshot dryrun_success /btrfs_pool/root.20240124T020001-0300 - -
finished success - - -
from btrbk.
Making some changes to the configuration seems to solve it (I think). At least the dry run seems to be correct:
# Globals (??)
transaction_log /var/log/btrbk_timemachine.log
lockfile /var/lock/btrbk_timemachine.lock
timestamp_format long-iso
backend_local_user btrfs-progs-doas
#stream_buffer 64m
btrfs_commit_delete yes
#
# Snapshots rules
snapshot_preserve_min latest
snapshot_preserve 3d 1w
# Set archiving rules
archive_preserve_min latest
archive_preserve 6d 4w 6m
incremental_prefs "defaults,sao,san,aro,arn"
incremental_clones yes
incremental yes
#preserve_hour_of_day 0
#preserve_day_of_week sunday
# Where the subvolumes are
# home/personal data
volume /btrfs_pool
group home_snapshots
snapshot_dir btrbk_snapshots
snapshot_create onchange
subvolume home
snapshot_name homesnaped
# root no home
volume /btrfs_pool
group root_snapshots
snapshot_dir btrbk_snapshots
snapshot_create onchange
subvolume root
snapshot_name rootsnaped
# Archive
# Backups destination
volume /btrfs_pool
group fullsystem
snapshot_create onchange
snapshot_dir btrbk_snapshots
target_preserve_min latest
target_preserve 6d 3w 2m
subvolume home
subvolume root
target send-receive /btrbk_backups/
❯ doas btrbk dryrun --config=/home/marcelo/Projects/rest-o/btrbk_timemachine.conf --progress --format=table
TRANSACTION LOG
---------------
TYPE STATUS TARGET_SUBVOLUME SOURCE_SUBVOLUME PARENT_SUBVOLUME
startup v0.32.6 - - -
snapshot dryrun_success /btrfs_pool/btrbk_snapshots/homesnaped.20240125T111212-0300 /btrfs_pool/home -
snapshot dryrun_success /btrfs_pool/btrbk_snapshots/rootsnaped.20240125T111212-0300 /btrfs_pool/root -
snapshot dryrun_success /btrfs_pool/btrbk_snapshots/home.20240125T111212-0300 /btrfs_pool/home -
snapshot dryrun_success /btrfs_pool/btrbk_snapshots/root.20240125T111212-0300 /btrfs_pool/root -
send-receive dryrun_success /btrbk_backups/root.20240122T180001-0300 /btrfs_pool/btrbk_snapshots/root.20240122T180001-0300 -
send-receive dryrun_success /btrbk_backups/root.20240123T000002-0300 /btrfs_pool/btrbk_snapshots/root.20240123T000002-0300 /btrfs_pool/btrbk_snapshots/root.20240122T180001-0300
send-receive dryrun_success /btrbk_backups/root.20240124T020001-0300 /btrfs_pool/btrbk_snapshots/root.20240124T020001-0300 /btrfs_pool/btrbk_snapshots/root.20240123T000002-0300
send-receive dryrun_success /btrbk_backups/root.20240125T111212-0300 /btrfs_pool/btrbk_snapshots/root.20240125T111212-0300 /btrfs_pool/btrbk_snapshots/root.20240124T020001-0300
delete_snapshot dryrun_success /btrfs_pool/btrbk_snapshots/home.20240124T020001-0300 - -
finished success -
from btrbk.
Seems that that fixed it
❯ doas btrbk run --config=/home/marcelo/Projects/rest-o/btrbk_timemachine.conf --progress --format=table
Creating backup: /btrbk_backups/root.20240122T180001-0300
in @ 0.0 kiB/s, out @ 328 MiB/s, 26.8 GiB total, buffer 1% full
summary: 26.8 GiByte in 7min 55.5sec - average of 57.7 MiB/s
Creating backup: /btrbk_backups/root.20240123T000002-0300
in @ 0.0 kiB/s, out @ 0.0 kiB/s, 0.0 kiB total, buffer 6% full
summary: 18.0 MiByte in 11.9sec - average of 1543 kiB/s
Creating backup: /btrbk_backups/root.20240124T020001-0300
in @ 0.0 kiB/s, out @ 63.9 MiB/s, 3180 MiB total, buffer 6% full
summary: 3201 MiByte in 1min 38.3sec - average of 32.6 MiB/s
Creating backup: /btrbk_backups/root.20240125T112454-0300
in @ 0.0 kiB/s, out @ 12.0 MiB/s, 1716 MiB total, buffer 1% full
summary: 1719 MiByte in 1min 08.9sec - average of 24.9 MiB/s
TRANSACTION LOG
---------------
TYPE STATUS TARGET_SUBVOLUME SOURCE_SUBVOLUME PARENT_SUBVOLUME
startup v0.32.6 - - -
snapshot success /btrfs_pool/btrbk_snapshots/homesnaped.20240125T112454-0300 /btrfs_pool/home -
snapshot success /btrfs_pool/btrbk_snapshots/rootsnaped.20240125T112454-0300 /btrfs_pool/root -
snapshot success /btrfs_pool/btrbk_snapshots/home.20240125T112454-0300 /btrfs_pool/home -
snapshot success /btrfs_pool/btrbk_snapshots/root.20240125T112454-0300 /btrfs_pool/root -
send-receive success /btrbk_backups/root.20240122T180001-0300 /btrfs_pool/btrbk_snapshots/root.20240122T180001-0300 -
send-receive success /btrbk_backups/root.20240123T000002-0300 /btrfs_pool/btrbk_snapshots/root.20240123T000002-0300 /btrfs_pool/btrbk_snapshots/root.20240122T180001-0300
send-receive success /btrbk_backups/root.20240124T020001-0300 /btrfs_pool/btrbk_snapshots/root.20240124T020001-0300 /btrfs_pool/btrbk_snapshots/root.20240123T000002-0300
send-receive success /btrbk_backups/root.20240125T112454-0300 /btrfs_pool/btrbk_snapshots/root.20240125T112454-0300 /btrfs_pool/btrbk_snapshots/root.20240124T020001-0300
delete_snapshot success /btrfs_pool/btrbk_snapshots/home.20240124T020001-0300 - -
finished success - - -
/btrfs_pool🔒 took 13m58s
.858ns fsh ❯ doas btrbk snapshot --config=/home/marcelo/Projects/rest-o/btrbk_timemachine.conf --progress --format=table
TRANSACTION LOG
---------------
TYPE STATUS TARGET_SUBVOLUME SOURCE_SUBVOLUME PARENT_SUBVOLUME
startup v0.32.6 - - -
snapshot success /btrfs_pool/btrbk_snapshots/homesnaped.20240125T114223-0300 /btrfs_pool/home -
snapshot success /btrfs_pool/btrbk_snapshots/rootsnaped.20240125T114223-0300 /btrfs_pool/root -
snapshot success /btrfs_pool/btrbk_snapshots/home.20240125T114223-0300 /btrfs_pool/home -
snapshot success /btrfs_pool/btrbk_snapshots/root.20240125T114223-0300 /btrfs_pool/root -
finished success - - -
from btrbk.
It actually did not solved. If really had read my own post, the only thing that happened was the renaming of the snapshot.
from btrbk.
Related Issues (20)
- Clean interrupted ssh transfers
- Prevent incomplete backups from blocking progress
- Is it safe to dedupe snapshots on the server and the client?
- Failed to fetch subvolume detail for snapshot_dir HOT 1
- Double daily backups sometimes... HOT 1
- understanding target_preserve_min
- Is 650 GB per day between hard disks connected by 1 GBit ethernet ok? HOT 1
- Feature request : BTRBK + grub-btrfs - Restore the snapshot currently booted - like Timeshift
- Why is btrbk only creating snapshots and not transfering?
- dry-run ignores lock
- whatever default shell is used despite it is not a posix compatible shell
- Not optimal behavior for low quality network connections
- [Question] How to specify clone sources from snapshots of other unrelated subvolumes?
- ERROR: ... unable to destroy quota group: Device or resource busy
- ERROR: clone: did not find source subvol HOT 1
- Question: duplicated instance when /etc/crontab set to run hourly at 00 minute
- [Question] Quarterly retention
- [Feature Request] configurable timestamps / names for snapshots
- snapshot_dir required even when `snapshot_create` set to `no`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from btrbk.