Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
projects:rsyncbackup [2024/07/28 11:29] – [Purge] darron | projects:rsyncbackup [2024/11/04 00:27] (current) – [Purge] darron | ||
---|---|---|---|
Line 127: | Line 127: | ||
When backing up the localhost, just use the hostname and rsync will copy files directly rather than use ssh. | When backing up the localhost, just use the hostname and rsync will copy files directly rather than use ssh. | ||
- | === Test=== | ||
- | |||
- | Testing can be performed on the server as user rsync by invoking the host command with one argument. | ||
- | |||
- | < | ||
- | /bin/su - rsync | ||
- | ./bin/host example | ||
- | </ | ||
- | |||
- | example above will extrapolate to example.conf etc | ||
=== Purge === | === Purge === | ||
After each backup operation a directory purge is performed to remove old directories. This can remove temporary data within a backup period and this should be appreciated. | After each backup operation a directory purge is performed to remove old directories. This can remove temporary data within a backup period and this should be appreciated. | ||
- | Purging | + | Purge can be disabled if preferred but exists to manage the number of directories over time. A weekly backup to tape or external disk storage would be sensible for important data. |
+ | |||
+ | Purge could also be disabled in the config and then ran at a different time interval from cron Eg. weekly or fortnightly. | ||
==Rules== | ==Rules== | ||
Line 158: | Line 150: | ||
To disable the purge process, set the PURGE variable to "" | To disable the purge process, set the PURGE variable to "" | ||
+ | |||
+ | === Test=== | ||
+ | |||
+ | Testing can be performed on the server as user rsync by invoking the host command with one argument. | ||
+ | |||
+ | < | ||
+ | sudo -s | ||
+ | /bin/su - rsync | ||
+ | ./bin/host example | ||
+ | </ | ||
+ | |||
+ | example above will extrapolate to example.conf etc | ||
===CRON=== | ===CRON=== |