Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
mobi_backup [21.01.2019 12:58] – Pascal Suter | mobi_backup [15.03.2022 16:23] (current) – [Error due to old flock version] 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 | ||
< | < | ||
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 / | ||
+ | |||
+ | ===== Known Issues ===== | ||
+ | On systems with old rsync versions (i.e. 3.0.6) and if your data contains extended Attributes or ACL's you may get lots of '' | ||
+ | ===== 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. | ||
Line 349: | Line 355: | ||
===== Error due to old flock version ===== | ===== 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 '' | 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 '' | ||
- | sed -i '/-E 66 //' mobi.sh | + | sed -i 's/-E 66 //' mobi.sh |
this will make the script work on those systems. however, since now the exit code of flock is '' | this will make the script work on those systems. however, since now the exit code of flock is '' | ||