I have set up the automatic archive and restore points (archives are done every 12 hours and backups have been changed from every 3 hours to every 6 hours). Archives are showing up as planned, but I am not seeing any restore points. The logs are showing the cron jobs running successfully and if I manually add a restore point I get a message saying the backup was successful but no restore points appear. If I look in /var/games/minecraft/backup I can see data there and also in the ‘servername’ folder.
This is a fresh install of MineOS on a fresh install of Ubuntu 12.04 server in a virtual machine. I have done all system updates and rebooted both the VM and Host. There is currently only one server configured and running.
I’m not the experienced one with MineOS, but aren’t restore points and backups two separate things? Anyways, if I’m wrong, SFTP into your VPS/VM, then go to /var/games/minecraft/backups/YourServerName, and tell me what shows up.
The most common reason for this is if permissions get botched. The most common reason for that is if you do command line stuff, but do it as root user.
Have you been making and command line changes recently?
Take a look at the directory of backups, and a few sub folders. Inside the /backups/servername it should all be mc:mc, and no root. Can you verify this?
Check with command:
Ls -la /var/games/minecraft/backup/servername
Alright, the next place we’d need to check is inside that rdiff-backup-data directory–see if all the permissions are consistent in there as well. The rdiff-backup-data directory is where all the increments are saved, and populates the values that the web-ui returns.
For a little insight into where those values come from:
root@core ~# cd /usr/games/minecraft/
root@core games/minecraft# ./mineos_console.py -s test command_list_increments
'/usr/bin/rdiff-backup --list-increments /var/games/minecraft/backup/test'
root@core games/minecraft# /usr/bin/rdiff-backup --list-increments /var/games/minecraft/backup/test
Found 0 increments:
Current mirror: Mon Dec 29 17:08:23 2014
root@core games/minecraft#
In my example, there are 0 increments (but there is a current mirror). Yours should show X increments (where X is greater than 0) and a current mirror.
Notice I did this as root, which you can too. When making backups and archives, however, you’d want to be ‘mc’ (or let the web-ui do them for you.
At any rate, should you find that any permissions are out of place, the fix-it command is:
(in the future, you shouldn’t censor out your servername…that is not delicate information). Users of the MineOS Turnkey ISO should be using mc:mc rather than minecraft:minecraft, which has been changed just for @Dylan3304’s use case.
Sorry for the delay. I did an ls -al on /var/games/minecraft/backup/Xanadu/rdiff-backup-data and can confirm that all the permissions are for minecraft:minecraft (at 545 lines, I decided to not include the listing).
I also ran the mineos_console.py and rdiff-backup commands and the end result is 76 increments - the date/timestamp shows the automated times and what can only be the manual backups. So the backup data is there, the permissions are good.
Good news, it turns out that if I login as minecraft - the restore points are there, but if I log in as my regular user they are not. Makes sense in that only the admin user can actually restore, but why does my regular account not show the restore points or the number of restore points. The regular user can only see that there are 0 backups / restore points?