Efficient backuping system using Borgbackup

BorgBackup (short: Borg) is a deduplicating backup program. Optionally, it supports compression and authenticated encryption.

Below, I present some trick for automatic backup using cron.

First, the main script:

And the cron line to insert to crontab:

*/15 * * * * ionice -c 3 nice -n 19 sh /home/bougui/bin/borgbackup.sh > /dev/null 2>&1

Bonus: some convenient aliases:

alias borg-list="borg list --remote-path /home/pi/bin/borg pi@82.231.223.163:/mnt/usb1/mantrisse_backup"

borg-info () {
    borg info --remote-path /home/pi/bin/borg pi@82.231.223.163:/mnt/usb1/mantrisse_backup::$1
    }
If you want to ask me a question or leave me a message add @bougui505 in your comment.