Automated WordPress Backup on Uberspace

This is how I backup this site, hosted on Uberspace.

Note: All scripts should be made executable: chmod +x script

I created the following file ~/bin/

NOW=$(date +"%Y-%m-%d-%H%M")



tar -cvf $BACKUP_DIR/$FILE --transform $WWW_TRANSFORM $WWW_DIR

tar --append --file=$BACKUP_DIR/$FILE --transform $DB_TRANSFORM $BACKUP_DIR/$DB_FILE

Created a cronjob (`crontab -e’) with the following content (daily is sufficient for me):

@daily /home/uberspace_user/bin/

To fetch those backups I created a tiny local script (~/bin/

rsync* /home/local_user/backup/uberspace_ip
ssh 'rm backups/*'

Then setup anacron on a local machine (vi /etc/anacrontab as root):

@daily  10      fetch.uberspace.backups nice run-parts /home/local_user/bin/

My local backup folder should now be filling with backups. I also set MAILTO to my email address, so I get noticed a couple of days (as a reminder to verify everything’s ok). After that I will remove it.

2 thoughts on “Automated WordPress Backup on Uberspace

  1. Jason

    I had nethack on my ipad. It was my favorite version since the amiga port 20 plus years ago. I really love nethack on ipad…a lot.
    Now with ios8, nethack no longer works on my ipad 3…..and I cannot find anywhere in the app store to dl it again.
    Help! Pls?


Leave a Reply to Jason Cancel reply

Your email address will not be published. Required fields are marked *

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    Markdown is turned off in code blocks:
     [This is not a link](

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see