Unkomplizierte automatische Schnappschuss-Sicherungen mit Linux und dem rsync-Kommando Zusammenfassung: http://linuxwiki.de/rsync/SnapshotBackups ./SnapshotBackups.html ------------------------- Invoke prg by e.g. rsnapshot -c /root/.rsnapshot/rsnapshot.conf.data daily ( see rsnapshot-DATA) config-file is here: /root/.rsnapshot/rsnapshot.conf.data important to change config-file: SNAPSHOT ROOT DIRECTORY BCKUP INTERVALS GLOBAL OPTIONS ( Default rsync args, include, exclude, link_dest, log-file ) eg. rsync_short_args<------>-a rsync_long_args>--numeric-ids --relative --delete-excluded --stats --log-file=/root/.rsnapshot/rsync-DATA.log BACKUP POINTS / SCRIPTS for differences and real sizes between 2 rotated backup trees use: rsnapshot-diff ------------------------------------------------ see: http://www.rsnapshot.org/faq.html Q: I run rsnapshot for the first time, but nothing happens. Why? A: rsnapshot does two major things - actual backup (with rsync) and rotation (moving snapshots around). Before it can do rotations, it needs to have at least one actual backup. So you need to understand which rsnapshot invocation will make an actual backup. For example, if you have sync_first enabled, then you need to run rsnapshot sync (which makes a backup) before you can do a rotation like rsnapshot hourly or rsnapshot daily. With sync_first enabled, all intervals (hourly, daily, etc) just do rotation. If you do not have sync_first (it is disabled by default), then the backup is made by the lowest interval (that is, the first one that you listed in your rsnapshot.conf). The other (higher) intervals do rotation. For example, if you have intervals hourly, daily, weekly and monthly, then you need to run rsnapshot hourly to do a backup before the other intervals (daily, weekly and monthly which do rotations) will do anything. In fact, you need a complete set of hourly backups before a rsnapshot daily will do anything. Similarly, you need a complete set of daily backups (usually 7) before rsnapshot weekly will do anything. Q: My rsnapshot setup seems to eat the processor on the machines I'm backing up from. How can I prevent this? A: rsnapshot itself is a low-overhead program, but rsync can drive processor utilization uncomfortably high. To address this, tell your rsync to run with high nice and ionice values, like 10 and -c3 respectively. Depending on how rsync was packaged for your system, your installation may have an /etc/default/rsync file. If it does, set RSYNC_NICE and RSYNC_IONICE as recommended. Then restart the rsync daemon. You should notice a difference immediately.