Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1. import time
  2. import shutil, errno
  3.  
  4. ##change these
  5. win_username = 'Jacob'
  6. sekiro_dir = 'C:\\Users\\' + win_username + '\\AppData\\Roaming\\Sekiro.'
  7. backup_dir = 'C:\\SekiroBackups'
  8.  
  9. ##dont change these
  10. timestr = time.strftime("%Y%m%d-%H%M%S")
  11. print(timestr)
  12.  
  13. #copy the files
  14. shutil.copytree(sekiro_dir, backup_dir + '\\' + 'Sekiro' + timestr)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement