Browse Source

update and print messages for backup_* scripts

master
Charles Reid 6 years ago
parent
commit
5cd1790039
  1. 2
      scripts/backup_gitea.py.j2
  2. 2
      scripts/backup_mysql.py.j2
  3. 2
      scripts/backup_wikifiles.py.j2

2
scripts/backup_gitea.py.j2

@ -33,7 +33,7 @@ def task(pod_dir,username): @@ -33,7 +33,7 @@ def task(pod_dir,username):
d = datetime.now().strftime('%Y-%m-%d_%H%M')
logfile = '/tmp/backup_gitea_forever_%s.log'%(d)
print("Log file: %s"%(logfile))
print("Running task. Log file: %s"%(logfile))
with open(logfile,'w') as f:
py_bin = sys.executable

2
scripts/backup_mysql.py.j2

@ -33,7 +33,7 @@ def task(pod_dir,username): @@ -33,7 +33,7 @@ def task(pod_dir,username):
d = datetime.now().strftime('%Y-%m-%d_%H%M')
logfile = '/tmp/backup_mysql_forever_%s.log'%(d)
print("Log file: %s"%(logfile))
print("Running task. Log file: %s"%(logfile))
with open(logfile,'w') as f:
py_bin = sys.executable

2
scripts/backup_wikifiles.py.j2

@ -33,7 +33,7 @@ def task(pod_dir,username): @@ -33,7 +33,7 @@ def task(pod_dir,username):
d = datetime.now().strftime('%Y-%m-%d_%H%M')
logfile = '/tmp/backup_mw_forever_%s.log'%(d)
print("Log file: %s"%(logfile))
print("Running task. Log file: %s"%(logfile))
with open(logfile,'w') as f:
py_bin = sys.executable

Loading…
Cancel
Save