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:56] – Pascal Suter | mobi_backup [15.03.2022 16:23] (current) – [Error due to old flock version] Pascal Suter | ||
---|---|---|---|
Line 11: | Line 11: | ||
You could also define multiple backup jobs for the same host but different directories on the host, to increase the speed of large backups. | You could also define multiple backup jobs for the same host but different directories on the host, to increase the speed of large backups. | ||
- | 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. | + | if you are looking for a solution to speed up an rsync copy process with parallel rsync invocations, take a look at my [[parallel_rsync]] article. Sadly the function I wrote there does not help in speeding up incremental backups at all (in contrary, it adds more overhead and hence makes an incremental backup even slower!). |
+ | 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 22: | 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 347: | 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 '' | ||