Cuberite Forum

Full Version: The Gallery server
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
You think it's possible to set this up for the gallery server, or is it too heavy for the Pi?
It could be done externally - download the world from the Gallery server to another machine and then run the Overviewer.
The overviewer only rebuilds the new chunks. Only the first run would be intensive. And compiling the overviewer on the PI B+ only took a couple of minutes.

Can the gallery server serve http?

On the same note, is there a way to browse and download the schematics?
The entire world is being backed up here daily: http://mc-server.xoft.cz/GalleryBackup/
The same backup script could, theoretically, run the overviewer directly on the webhosting server.
(02-05-2015, 05:43 AM)xoft Wrote: [ -> ]The entire world is being backed up here daily: http://mc-server.xoft.cz/GalleryBackup/
The same backup script could, theoretically, run the overviewer directly on the webhosting server.

I'll do it and host it, but to make my life easier ... can there be a top level 'latest.7z' that I could grab daily?
If you can help me set it up, no problem.

I'm currently using a script containing the following line, that is run from cron on the Gallery server:
Code:
ssh -i $remoteKeyFile -p $remotePort $remoteUser@$remoteHost "mkdir -p $remotePath/$targetFolderFormat" && scp -rp -i $remoteKeyFile -P $remotePort $packedFileName $remoteUser@$remoteHost:$remotePath/$targetFolderFormat
I suppose it's possible to add another command that would copy the packed file over the latest.7z file.
(02-05-2015, 06:30 AM)xoft Wrote: [ -> ]If you can help me set it up, no problem.

I'm currently using a script containing the following line, that is run from cron on the Gallery server:
Code:
ssh -i $remoteKeyFile -p $remotePort $remoteUser@$remoteHost "mkdir -p $remotePath/$targetFolderFormat" && scp -rp -i $remoteKeyFile -P $remotePort $packedFileName $remoteUser@$remoteHost:$remotePath/$targetFolderFormat
I suppose it's possible to add another command that would copy the packed file over the latest.7z file.

You should only have to copy it one more time.

What is the $remotePath value?

Code:
ssh -i $remoteKeyFile -p $remotePort $remoteUser@$remoteHost "mkdir -p $remotePath/$targetFolderFormat"
&&
scp -rp -i $remoteKeyFile -P $remotePort $packedFileName $remoteUser@$remoteHost:$remotePath/$targetFolderFormat
&&
scp -rp -i $remoteKeyFile -P $remotePort $packedFileName $remoteUser@$remoteHost:$remotePath/latest.7z
I don't want to copy it using scp, that means a needless extra transfer. A local copy on the remote machine should be much better.

Code:
targetFolderFormat=$(date +"%Y-%m")
This makes the per-month folders.
(02-05-2015, 08:17 AM)xoft Wrote: [ -> ]I don't want to copy it using scp, that means a needless extra transfer. A local copy on the remote machine should be much better.

Code:
targetFolderFormat=$(date +"%Y-%m")
This makes the per-month folders.

then

Code:
ssh -i $remoteKeyFile -p $remotePort $remoteUser@$remoteHost "cp $remotePath/$targetFolderFormat/$packedFileName $remotePath/latest.7z"
Or create a symlink.

Code:
ln -s $remotePath/$targetFolderFormat/$packedFileName $remotePath/latest.7z
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30