shutdown should delay for couple seconds after snapshot finished

Bug #1261031 reported by Jon on 2013-12-14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Back In Time
Fix Released

Bug Description

I am saving my snapshots to an external USB HD and according to the activity light on the HD, the disk is still writing from the buffer to the disk when the computer powers off, so I'm not sure that the last part of the snapshot is saved before the disk is powered off.

As a result, even if I wanted to start a snapshot and then let the computer shut down after it is completed, I may end up missing a few files form the backup, so I cannot be confident in using this feature....

Could you maybe add a slight, maybe 15-30 sec delay after the snapshot finishes to guarantee the external disks sufficent to finish writing the snapshot from the cashe buffer before losing power. (15 would likely be sufficent).

I am not *sure* that the Hd has not finished the snapshot, it *appears* to be complete, but the activity light on the disk does not quit blinking until just a split second(almost to quick to be sure) before the computer powers off......When doing a backup, the light contiues for a few seconds after BiT says the backup is complete, so I have to assume that it is still writing or at least doing some verification on the written data after BiT finishes.

Related branches

Jon (doogie544) on 2013-12-14
description: updated
description: updated
Germar (germar) wrote :

Jon, I already triaged Kósas bug #1261022. So I'll cut your report and use it just for your second thought about delaying shutdown.
I'm not sure if this is really necessary as the kernel should take care of it. But I'll investigate.

Sorry for troubles with shutdown.
Kind Regards,

description: updated
summary: - Computer shut-down after maunal snapshot --regardless of options checked
+ shutdown should delay for couple seconds after snapshot finished
Jon (doogie544) wrote :

Ok, thank you.

As I said it appears that the snapshot is complete, the only thing I have to go on is the activity light on the HD and the fact that it is still blinking after the snapshot is complete.

It may be that the kernel will hold-off shutdown until the drive is done, in which case my slow human eyes would not be able to tell the difference in the light.

If the kernel takes care of this please let me know. I just don't want to get burned by missing files if I ever have to restore so in the mean time I will only run the backup when I an present to shut down the computer.

Germar (germar) wrote :

Before shutdown Linux will switch to runlevel(7). This will include unmounting of all disks and they will be synced before unmounting. So as I already thought in my last comment the kernel (or init, not sure) will take care of it.

But anyways, I added "sync" before performing shutdown. This will force writing all data to all disks. Take a look at "info coreutils 'sync invocation' "

Changed in backintime:
status: New → Fix Committed
importance: Undecided → Medium
milestone: none → 1.0.34
Germar (germar) on 2013-12-21
Changed in backintime:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers