@@ -0,0 +1,1650 @@
+%22%22%22%0ACraftyBackupScript - Backup%0Av0.2.0%0ALinux only.%0A%0A~~~~~~~~~~~~~~~~~%0APsuedocode:%0A(Can be configured one at a time to backup)%0A%0ASend %60save-off%60 and %60save-all%60 commands in screen spigot process%0A   %0AStart backup process%0A    Send %60say This server is backing up... Expect lag...%60 or similar message%0A    Compress all server data and put in their respective .ZIP or 7z archives.%0A        Save with format %60%3Cservername%3E_mm-dd-yy_hh-mm.7z%60%0A    %60save-on%60%0A    Delete backup file outside of file limit determined by last file creation date.%0A    %0ASend %60stop%60 command to make server restart.%0A~~~~~~~~~~~~~~~~~%0A%0Acommand for inside screen:%0Ascreen -S minecraft -p 0 -X stuff %22say test123$(printf %5C%5Cr)%22%0A%0ARequirements on Linux:%0Ap7zip%0Ap7zip-full%0Ascreen%0A%0A%22%22%22%0Aimport subprocess%0Aimport shlex%0Aimport time%0A%0A# Config%0A%0AminecraftServer = False # To put in minecraft server mode. %0A%0A# File Paths (needs to be changed)%0AserverPath = %22/home/cabox/workspace/CCNetwork/Server1/%22 # Path to folder of server to be backed up.%0AsavePath = %22/home/cabox/workspace/CCNetwork/Backup/BackupArchives/Server1/%22 # To keep backup archives%0A%0A# Archive Naming%0Adatetime = time.strftime(%22%25m-%25d-%25Y--%25I:%25M%25p%22) # Time format%0AarchiveName = %22Server1_Backup_%22 + datetime  # Name of backup archive%0A%0A# End Config.%0A%0Aprint(%22CraftyBackupScript%22)%0Aprint(%22%22)%0A%0A# Name preview%0Aprint(%22Archive named:%5Cn%25s.7z%22 %25 (archiveName))%0A# Compress with 7z.%0A# -mx9 = Ultra Compression %7C -t7z = Specify .7z format %7C -mmt = Multithreading%0Aprint(%22Using command:%5Cn7z a -mx9 -t7z -mmt %25s%25s.7z %25s*%22 %25 (savePath, archiveName, serverPath))%0Asubprocess.call(shlex.split(%227z a -mx9 -t7z -mmt %25s%25s.7z %25s*%22 %25 (savePath, archiveName, serverPath)))%0A%0A

Create CBS-Backup.py