Is there a way I get the amazing Deja-dup to make me hourly backups in addition to daily, weekly, biweekly etc? If not, is there something else that I could use instead?
Add a job to it with the following parameters (replace every minute with every hour or the schedule you want to use):
You can even hide the pop-up window by using deja-dup --backup --auto as the command or use X-Application: suppress outup in the default behavior drop box, it will hide the window while deja-dup runs.
Although it seems like the Déjà Dup code could not be easily modified to accomodate an hourly option, backups can be manually initiated and this can easily be added as a cron job that runs on the hour.
Here are the steps you need to take:
Run the following two commands in a terminal to enable local access to the X server:
xhost +local:
xhost
Now run this command:
crontab -e
If asked to select an editor, go with /bin/nano.
Go to the bottom of the file and add the following line (followed by a blank line):
If you selected nano in step 2, press Ctrl+O followed by Enter and Ctrl+X. (If not, then use the appropriate commands for your editor to save the file and exit.)
You're done! Your backups will now take place 15 minutes after the start of each hour (12:15, 1:15, etc.)
Wanted to follow up on user103965's comment. This appears to be because when started from Cron, the process doesn't know about your dconf settings. From this page: https://stackoverflow.com/questions/10374520/gsettings-with-cron I was able to create a script that can be called from cron.
Install
Scheduled Tasks
:Add a job to it with the following parameters (replace every minute with every hour or the schedule you want to use):
You can even hide the pop-up window by using
deja-dup --backup --auto
as the command or useX-Application: suppress outup
in the default behavior drop box, it will hide the window while deja-dup runs.Although it seems like the Déjà Dup code could not be easily modified to accomodate an hourly option, backups can be manually initiated and this can easily be added as a
cron
job that runs on the hour.Here are the steps you need to take:
Run the following two commands in a terminal to enable local access to the X server:
Now run this command:
If asked to select an editor, go with
/bin/nano
.Go to the bottom of the file and add the following line (followed by a blank line):
If you selected
nano
in step 2, press Ctrl+O followed by Enter and Ctrl+X. (If not, then use the appropriate commands for your editor to save the file and exit.)You're done! Your backups will now take place 15 minutes after the start of each hour (12:15, 1:15, etc.)
Wanted to follow up on user103965's comment. This appears to be because when started from Cron, the process doesn't know about your dconf settings. From this page: https://stackoverflow.com/questions/10374520/gsettings-with-cron I was able to create a script that can be called from cron.
my crontab:
you can write a simple script such as
then run the script in background. You can use infinite loop if you want.