User Tools

Site Tools


backing-up-my-dokuwiki-with-tarsnap

My DokuWiki is backed up nightly using this script, excluding ever-changing directories:

tarsnap-backup.sh
#!/bin/sh
/home/username/tarsnap/inst/bin/tarsnap -c \
        -f "username-$(date +%Y-%m-%d_%H-%M-%S)" \
        --exclude cache \
        --exclude index \
        --exclude locks \
        --exclude tmp \
        /var/www/virtual/username/html/data \
        /var/www/virtual/username/html/conf

And then call it from crontab.

backing-up-my-dokuwiki-with-tarsnap.txt · Last modified: 2019-02-17 13:21 by Thomas Hühn