This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/Users/mshiyaf/.pyenv/shims/python | |
import os | |
import tarfile | |
import time | |
import sys | |
def waiting(lenstr=20, zzz=0.5, dispstr='Backing up your files'): | |
dots = '.' * lenstr | |
spaces = ' ' * lenstr | |
print(dispstr.center(50, '*')) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/Users/mshiyaf/.pyenv/shims/python | |
import os | |
import tarfile | |
import time | |
def tardir(path,tar_name): | |
tar_log = open('/Users/mshiyaf/Code/backup_mod.log','w') | |
try: | |
with tarfile.open('/Users/mshiyaf/Code/Texol_Backup.tar','r') as tar: | |
file_name_array = [] |