rename backup tarball
This commit is contained in:
parent
26a18d7877
commit
4176263cb1
@ -165,25 +165,24 @@ if platform.system() == "Linux":
|
||||
print("[INFO]: Changed current working directory to '" + str(mcfolder) + "'")
|
||||
|
||||
time.sleep(1)
|
||||
print()
|
||||
print("Backing up minecraft install...")
|
||||
print(); print("Backing up minecraft install...")
|
||||
print("Don't close the window! This'll take a moment...")
|
||||
|
||||
compress_tar(mcfolder, "mod-backup.tar.gz")
|
||||
compress_tar(mcfolder, "backup.tar.gz")
|
||||
|
||||
elif platform.system() == "Windows":
|
||||
print("Operating system detected: Windows")
|
||||
|
||||
os.chdir("AppData/Roaming/.minecraft")
|
||||
mcfolder = str(Path.cwd())
|
||||
print("Changed current working directory to '" + str(mcfolder) + "'")
|
||||
print("[INFO]: Changed current working directory to '" + str(mcfolder) + "'")
|
||||
|
||||
time.sleep(1)
|
||||
print(); print("Backing up minecraft install...")
|
||||
print("Don't close the window! This'll take a moment...")
|
||||
|
||||
modfolder = str(mcfolder) + '/mods'
|
||||
compress_tar(mcfolder, "mod-backup.tar.gz")
|
||||
compress_tar(mcfolder, "backup.tar.gz")
|
||||
|
||||
os.chdir(mcfolder)
|
||||
time.sleep(2)
|
||||
|
Loading…
x
Reference in New Issue
Block a user