-
-
Save msfidelis/e8b57c1b8fb34d1ef522 to your computer and use it in GitHub Desktop.
This file contains 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
#CONSTROI OS LOGS DO SISTEMA - Aqui selecionamos o nome do backup e o arquivo de logs que iremos criar. | |
def geralog(): | |
date = (time.strftime("%Y-%m-%d")) # | |
logfile = '%s-backup-full.txt' % date # Cria o arquivo de Log | |
pathlog = '/var/log/backup/backup-full/%s' % logfile # Arquivo de log | |
return pathlog |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment