[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: rdiff-backup and computer suspend
From: |
David Precious |
Subject: |
Re: rdiff-backup and computer suspend |
Date: |
Thu, 20 Apr 2023 13:55:32 +0100 |
On Thu, 20 Apr 2023 08:37:45 -0400
Eric Beversluis <ebever@researchintegration.org> wrote:
> When I get up in the morning my rdiff-backup process hasn't finished.
> I can't figure out if it's taking all night (it's a pretty big
> backup, since it includes the Windows VM) or if, for some reason,
> it's hanging up during the night.
Do you redirect rdiff-backup's ouput to a log file? Maybe you'd find
some hints there?
> So my question concerns how suspend work on Ubuntu. I assume that the
> computer doesn't suspend if a process like rdiff-backup is running.
> Maybe that's wrong. But I've always thought the computer wouldn't
> suspend as long as there was activity. And if the computer does
> suspend, does that mean that the rdiff-backup process also suspends?
>
> Is there a way to have the computer only suspend once the backup
> process completes?
If you're on Ubuntu you presumably have systemd in use, so running
rdiff-backup via systemd-inhibit would probably do the trick:
https://manpages.ubuntu.com/manpages/bionic/man1/systemd-inhibit.1.html