mobi_backup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revisionBoth sides next revision
mobi_backup [21.01.2019 12:58] Pascal Sutermobi_backup [21.01.2019 13:12] Pascal Suter
Line 14: Line 14:
  
 at the end of a successful backup, a rotation is made and old backups are being deleted where appropriate. also a summary email is sent to the admin.  at the end of a successful backup, a rotation is made and old backups are being deleted where appropriate. also a summary email is sent to the admin. 
 +===== Configuration =====
 to configure, simply edit the lines or add more blocks after the to configure, simply edit the lines or add more blocks after the
 <code>############################################################## <code>##############################################################
Line 24: Line 24:
 the script will write a hidden file named .lastdst to the backup base directory for each backup job. this file always contains the folder name of the sub directory of the last successful backup.  the script will write a hidden file named .lastdst to the backup base directory for each backup job. this file always contains the folder name of the sub directory of the last successful backup. 
  
 +===== Logs and Debugging =====
 +the script writes multiple log files. First of all it writes a new log file for every invocation to /tmp/<date-time>.log. this is a general log which contains information printed by the "queue manager". It then writes two log files for each backup job it runs. these can be found in the same directory where these backup jobs are stored (defined by ''BASEDST'') again with the start date and time of the job. one ends on ''log'' the other one ends on ''.err''. the ''.log'' file contains the standard-output of the process and the ''err'' file contains the standard-error output. so if copying a file failed for example it should be listed in the ''err'' file. 
 +
 +===== the script =====
 so here is the script.. use it at your own risk and let me know if you find bugs or have contributions to make. simply send me an email to contact at psuter dot ch.  so here is the script.. use it at your own risk and let me know if you find bugs or have contributions to make. simply send me an email to contact at psuter dot ch. 
  
  • mobi_backup.txt
  • Last modified: 15.03.2022 16:23
  • by Pascal Suter