0

I have a linux server hosting Minecraft that I can connect to using ssh, I should probably also mention that I do have an ssh key with no passphrase.

I want to backup my Minecraft world every hour to my local pc in a backups/minecraft_backups folder

I have a bash script in /etc/cron.hourly that looks like this:

#!/bin/sh
rsync -re ssh --delete root@<server-ip-address>:/root/minecraft/world/* ~/backups/minecraft_backups/$(date "+%B%d-%Y")

The script works perfectly if I run it on its own but, for some reason, the cronjob doesn't work(nothing happens).

0 Answers0