User Tools

Site Tools


setupbackupminecraftjavaubuntu22

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
setupbackupminecraftjavaubuntu22 [2025/06/15 20:14] tektinkerssetupbackupminecraftjavaubuntu22 [2025/06/15 20:33] (current) tektinkers
Line 1: Line 1:
 [[https://docs.tektinkers.com|TinkersDocs Home]] [[https://docs.tektinkers.com|TinkersDocs Home]]
 [[https://www.tektinkers.com|Back to tektinkers.com]] [[https://www.tektinkers.com|Back to tektinkers.com]]
 +\\ 
 +\\
 **Setup Backup for Minecraft Java Ubunutu 22** **Setup Backup for Minecraft Java Ubunutu 22**
 +\\ 
 +\\ 
 +\\ 
 +For use when Minecraft is being run on Ubuntu Server 22 and backed up to another Ubuntu Server that is being used for file sharing. 
 +\\ 
 +\\ 
 +\\
 <code>sudo apt-get install openssh-client</code> <code>sudo apt-get install openssh-client</code>
 //OpenSSH has scp integrated to utilize// //OpenSSH has scp integrated to utilize//
 <code>sudo apt-get install cron</code> <code>sudo apt-get install cron</code>
 //Cron is used for scheduling backups// //Cron is used for scheduling backups//
 +<code>crontab -e</code> 
 +//opens cron to enter scheduled backup// 
 +\\ 
 +//add line below for automated backup//\\
 <code>0 0 * * * scp -r /path/to/files/* user@nas:/shared_folder/$(date +\%Y-\%m-\%d_\%H-\%M-\%S)/</code> <code>0 0 * * * scp -r /path/to/files/* user@nas:/shared_folder/$(date +\%Y-\%m-\%d_\%H-\%M-\%S)/</code>
-//"00***" sets the frequency to run// +//"00***" sets the frequency to run//\\ 
-//"scp -r" runs the utility scp while -r reads all files and files within directories.// +//"scp -r" runs the utility scp while -r reads all files and files within directories.//\\ 
-//"/path/to/files/* user@nas:/shared/folder/path/" is what files and directories to copy and where to paste them via ssh"// +//"/path/to/files/* user@nas:/shared/folder/path/" is what files and directories to copy and where to paste them via ssh//\\ 
-//"$(date +\%Y-\%m-\%d_\%H-\%M-\%S)/" puts all files being backed up into a folder named by date/time created.// +//"$(date +\%Y-\%m-\%d_\%H-\%M-\%S)/" puts all files being backed up into a folder named by date/time created.//\\ 
- +<code>crontab -l</code> 
 +//verify's the scheduled backup// 
 +\\ 
 +\\ 
 +//Since Cron simply runs the command line, you can run it yourself in the terminal as well.// 
 +<code>crontab -l | grep scp | bash</code> 
 ———————————————————— ————————————————————
setupbackupminecraftjavaubuntu22.1750018475.txt.gz · Last modified: 2025/06/15 20:14 by tektinkers