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 revision
Previous revision
Next revisionBoth sides next revision
mobi_backup [26.09.2018 12:28] – [Migration from RUBI] Pascal Sutermobi_backup [26.09.2018 15:49] – [MOBI Backup (rsync wrapper)] Pascal Suter
Line 335: Line 335:
 rm -f /tmp/backupReport.txt rm -f /tmp/backupReport.txt
 </code> </code>
 +===== Error due to old flock version =====
 +when this script is run on an older linux distribution such as CentOS 6.5 for example, the provided version of flock is too old to know the ''-E'' option which specifies an exit code in case the lock could not be acquired. in such a situation you can patch the mobi.sh script using this command: 
 +  sed -i '/-E 66/-n/' mobi.sh
 +this will make the script work on those systems. however, since now the exit code of flock is ''1'' when it can't acquire a lock the error message displayed in such a case might be a bit misleading, as it is the same as displayed in case of a syntax error in the rsync call. so keep that in mind when debugging such cases. 
  
 ===== Migration from RUBI ===== ===== Migration from RUBI =====
Line 347: Line 351:
       - ''BASEDST'' can be copy/pasted from rubi 1:1        - ''BASEDST'' can be copy/pasted from rubi 1:1 
       - ''KEEPC'' could be set to the same value as ''KEEPD''       - ''KEEPC'' could be set to the same value as ''KEEPD''
-  - to go the backup directory for each host and run this command <code>basename $(<lastdst) > .lastdst</code>+  - to go the backup directory for each host and run this command <code>basename $(<lastdst) | tr -d ":" > .lastdst</code> 
 +  - remove the ":" in the directory name of the last backup that is written in ''lastdst'' like so: <code>mv 2018.04.01-00\:09 2018.04.01-0009</code>
   - cleanup old log files and ''lastdst'' file and whatever else there might be laying around in this folder.    - cleanup old log files and ''lastdst'' file and whatever else there might be laying around in this folder. 
-  - remmber to come back and delete the old backups when it's time. old RUBI backups won't be rotated using mobi, this needs to be done manually. mobi will only include backups into the rotation for which it finds a log file of a successful backup job. +  - remember to come back and delete the old backups when it's time. old RUBI backups won't be rotated using mobi, this needs to be done manually. mobi will only include backups into the rotation for which it finds a log file of a successful backup job. 
  • mobi_backup.txt
  • Last modified: 15.03.2022 16:23
  • by Pascal Suter