Skip to content

Instantly share code, notes, and snippets.

@msfidelis
Created February 1, 2016 00:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save msfidelis/e8b57c1b8fb34d1ef522 to your computer and use it in GitHub Desktop.
Save msfidelis/e8b57c1b8fb34d1ef522 to your computer and use it in GitHub Desktop.
#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