3b Create an Anacron job to play a video weekly

Created Tuesday 13 June 2023


This plays a reminder every week to back up your stuff.


Make this back.sh in: /home/k/backups/


#!/bin/bash


bash -c "DISPLAY=:0 mpv /home/k/backups/Back.mp4"


After making it, use: chmod +x back.sh


Edit /etc/anacrontab and add in the end:
@weekly 5 Backup.weekly /bin/bash /home/k/backups/back.sh


Read the end of:
https://linuxconfig.org/how-to-run-commands-periodically-with-anacron-on-linux