Please use xargs to speed up snapshot removal
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Back In Time |
Fix Released
|
Wishlist
|
Germar |
Bug Description
The automatic removal of snapshots takes longer than necessary. I've set up backintime to take a snapshot every 10 minutes, but the smart removal of most of the snapshots of the day before yesterday block the second and third snapshot of the day.
A significant portion of that time is spend in find and chmod. It is possible to speed up this step by using xargs:
paul@Toren:
real 0m32.897s
user 0m0.812s
sys 0m5.860s
paul@Toren:
real 0m14.497s
user 0m0.236s
sys 0m2.152s
Those were two practically identical snapshots, so the only difference is the use of xargs instead of -exec.
Changed in backintime: | |
status: | New → Fix Committed |
importance: | Undecided → Wishlist |
assignee: | nobody → Germar (germar) |
Changed in backintime: | |
status: | Fix Committed → Fix Released |
If find version is >4.2.12 we could also use 'find ./ -type d -exec chmod u+wx {} +' which will do the same as xargs.
Dan what do you think?
Regards,
Germar