Mint Serena 64 bit using the Mate desktop environment. Most of the following scripts will run on this machine, although some have only been tested with the Gnome desktop. Extra software requirements can be met by the Ubuntu and safe PPA repositories. Scripts may be re-written or added to from time to time, the date serves as the version number. Syntax highlighting on these pages is provided by GVim's "Convert to HTML" option.

Simple cron backup

# Filename: Backup
# Version: 211010
# Author: robz
# Works with "Back In Time" to backup, log actions and notify when complete.
# Configure "Back In Time" via the GUI and run from a user crontab.
# 00 */6 * * * export DISPLAY=:0 && /home//.scripts/Backup > /dev/null 

# 2>&1

NOW=`date +%A-%H:%M`                                    # Datestamp.

LOGFILE="$HOME/Backup-for-$NOW.log"                     # Log name and path.

rm -f $OLDLOG                                           # Delete old logfile.
sync && nice -n 19 \
/usr/bin/backintime --backup-job 2>&1 > $LOGFILE && \   # Do backup n'log.
notify-send -i $ICON "Backup job has completed" & \     # Hey it's done.
/usr/bin/canberra-gtk-play --volume 6 -f $SOUND         # I said, IT'S DONE!

Powered by ScribeFire.

No comments: