Script ssh Backup your server every night

Discussion in 'Performance Tweaking' started by Creeper96_, Jul 8, 2013.

  1. Who had a script ssh to backup the server and the map every night?
     
  2. I suppose you could make a script that copy's the minecraft directory to another location and then create a cron job to execute the script every 24 hours

    The Script to Copy from one directory to another below * being the directory where the .sh file is located
     
    #2 Dean Reid, Jul 9, 2013
    Last edited: Jul 9, 2013
  3. You need to save world to disk and disable auto world saving before copying. Otherwise, may be, your backup will be broken.
    Ex:
    save-all
    save-off
    ....copying...
    save-on
     
    • Agree Agree x 1
  4. I miss only the job to run this every 24 hours, but i think that google will help me

    So, thanks
     
  5. 0 2 * * * sh /home/username/Backups/script.sh

    Every night 2:00