Moving log files to remote server

Status
This thread has been locked.

Mooselk

Motocross enthusiast
Premium
Feedback score
9
Posts
298
Reactions
213
Resources
0
I was wondering if someone could help me create a script so I can move the contents of my servers log directory /home/minecraft/multicraft/server/logs/ to a remote machine and have them stored in a directory viewable by a web server. I have root access on both of course and I was thinking of using rsync to transfer the logs. Any help is appreciated.
 
Last edited:
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

1337

ash is our purest form
Supreme
Feedback score
159
Posts
1,541
Reactions
1,523
Resources
0
When logged into the server containing the file, run the following (command is in a hastebin due to MCM thinking a linux command is an SQL injection Kappa):

https://hastebin.com/yosenojifo.rb

if you need further help or a web server setup, drop me a DM on MCM or Discord: Fox#1337
 

1337

ash is our purest form
Supreme
Feedback score
159
Posts
1,541
Reactions
1,523
Resources
0
Not suggested to do this, log files can get very large. That can cause issues with the person who wants to view the log files.

I can create you a script that would automatically cut the most recent log file to the past 12-24 hours along with giving them a web ftp similar to how cpanel is to have read-only access if you'd like as well.

Contact me for more information. Frank#6617
Re-reading the thread, I realized I skipped over the script part. My apologies. I would recommend doing the above ^^
 

Mooselk

Motocross enthusiast
Premium
Feedback score
9
Posts
298
Reactions
213
Resources
0
When logged into the server containing the file, run the following (command is in a hastebin due to MCM thinking a linux command is an SQL injection Kappa):

https://hastebin.com/yosenojifo.rb

if you need further help or a web server setup, drop me a DM on MCM or Discord: Fox#1337
Thanks, but I've already tried this and found rsync to work better with the -z syntax to compress the files.

Not suggested to do this, log files can get very large. That can cause issues with the person who wants to view the log files.

I can create you a script that would automatically cut the most recent log file to the past 12-24 hours along with giving them a web ftp similar to how cpanel is to have read-only access if you'd like as well.

Contact me for more information. Frank#6617
That would be awesome if you could do this for me, I've added you on discord.
 

CameronR

My only discord is itscam#1234
Supreme
Feedback score
30
Posts
509
Reactions
84
Resources
0
Thanks, but I've already tried this and found rsync to work better with the -z syntax to compress the files.


That would be awesome if you could do this for me, I've added you on discord.
Frozola
 
Status
This thread has been locked.
Top