Timer = threading.Timer(backup_interval, createArchive) Shutil.make_archive(base_name,'zip',base_dir) # Use current time in seconds as filename suffixīase_name="PNATI_Backup-" str(time.mktime(time.gmtime())) # Adapt "base_dir" and "backup_interval" to match your environment/preferenceīase_dir="C:\\Users\\Username\\Documents\\Telltale Games\\Poker Night at the Inventory" # You will also want to manually delete old backups every now and then. # Be aware that this will take a lot of space, if you chose a short interval. # For very pessimistic data safety reasons a new archive is created each time. # backup of a folder in a certain interval, until you stop it. ![]() ![]() # This script is just a quick dirty way to have a regular zipped In case anyone has a use for the python script:
0 Comments
Leave a Reply. |