Automate dietpi-backup

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
User avatar
johnvick
Legend
Posts: 540
Joined: Wed Jun 08, 2016 10:53 am
Location: New Zealand

Re: Automate dietpi-backup

Post by johnvick » Sat May 19, 2018 7:26 pm

All working well thanks again @MichaIng

unixmit
Posts: 13
Joined: Wed Jun 13, 2018 6:37 pm

Re: Automate dietpi-backup

Post by unixmit » Tue Jul 10, 2018 4:42 pm

I am trying and failing with this. I want a cronjob to run a script that runs the backup automatically.

In my script I have:

Code: Select all

#!/bin/bash

/DietPi/dietpi/dietpi-backup 1
In crontab I have:

Code: Select all

* 3  *   *   *     sh /home/unix/dietpi-backup.sh
It never runs the backup utility. The script runs as I have set it to create a log file when it runs. If I run the script manually it works too.

Can anyone see what I'm missing?
Thank you

User avatar
MichaIng
Legend
Posts: 284
Joined: Sat Nov 18, 2017 5:21 pm

Re: Automate dietpi-backup

Post by MichaIng » Tue Jul 10, 2018 4:56 pm

@unixmit
Jep, somehow cron does not allow tput anymore. Fix: https://github.com/Fourdee/DietPi/commi ... 0174844090

Post Reply