User Tools

Site Tools


setupbackupminecraftjavaubuntu22

This is an old revision of the document!


TinkersDocs Home Back to tektinkers.com

Setup Backup for Minecraft Java Ubunutu 22

sudo apt-get install openssh-client

OpenSSH has scp integrated to utilize

sudo apt-get install cron

Cron is used for scheduling backups

0 0 * * * scp -r /path/to/files/* user@nas:/shared_folder/$(date +\%Y-\%m-\%d_\%H-\%M-\%S)/

“00***” sets the frequency to run “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“ “$(date +\%Y-\%m-\%d_\%H-\%M-\%S)/” puts all files being backed up into a folder named by date/time created.

————————————————————

setupbackupminecraftjavaubuntu22.1750018475.txt.gz · Last modified: 2025/06/15 20:14 by tektinkers