RFE: Pre- and post-backup hooks
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Déjà Dup |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
First of all, thank you for making proper backups so easy to have. I looked through the recent open bugs and mailing list posts and found nothing similar to this, so my apologies if this is a duplicate request.
One thing I think it would be a great idea for Deja Dup to feature is one or more configurable hooks for when backups are made, so that a user could run a script or command automatically immediately before a backup is started, and/or after a backup has just finished.
I'm not a UI expert by any means, so I'd appreciate even if this were only added as a so-called "power user" option through GSettings or similar.
For now, I can only think of a few possible use cases for pre- and post-backup hooks at the moment; but I'm sure there are others that I'm missing.
(1) In order to keep her system easily recoverable, Alice uses Deja Dup to backup her entire /home folder and various configuration files under /etc; but for ease of recovery, she wishes to use her distro's packaging scripts and automatically create a list of all installed packages and their versions to store with that backup.
(2) Bob has Deja Dup set to automatically backup to his remote system via SSH/SFTP; but the SSH server requires some port knocking-fu to properly establish a connection. Bob wants to configure Deja Dup so that his "open-the-door.sh" script runs before the backup is started to ensure it can be done successfully.
(3) Bob, from above, wants to close the port of his SSH connection by running his "close-the-door.sh" script after the backup is successfully completed.
(4) Charlie wants to set his desktop to backup to his Amazon S3 account overnight or while he is at work, since it will take several hourse via his ADSL connection. He wants to be able to add a hook so that after the backup is completed, the computer will power-off automatically (using "sudo shutdown -h now" or similar).
Thanks, and regards.
--Peter
This is a fantastic idea. I have a local NFS server that I would like to mount automatically before backing up, and if its unmountable (not at home) then don't let the automatic backup occur.