Skip to content

Instantly share code, notes, and snippets.

@msfidelis
Created February 1, 2016 01:18
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/d56a62d2ea24ea744b5e to your computer and use it in GitHub Desktop.
Save msfidelis/d56a62d2ea24ea744b5e 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-rsync.txt' % date # Cria o arquivo de Log
pathlog = '/var/log/backup/backup-rsync/%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