I want certain directories of a unix machine (A) backed up. Due to space and security reasons, the backups should not be stored locally on machine A, but a remote machine (B). Backups can't be pushed to B via SSH or similar, but must be pulled manually via FTP or similar. Due to bandwidth and traffic limitations, only incremental backups can be used.
I am somewhat familiar with rsync and would know how to solve this issue locally or via ssh. However I think my current backup and restore processes are not optimal.
My current solution for making incremental backups without keeping the increments is as follows:
- Make an initial full backup and download.
- Make incremental backups with rsync, an increment directory as destination and the full backup as dir for --compare-dest.
- Pack the destination for future download in a separate file.
- "Merge" the increment into the full backup with mv /increment/* /full.
- Start at step 2 for every future incremental backup.
This way no additional space for the increments is necessary and all future backups are incremental and not differential. First Question: Is there an easier way, or can rsync do steps 2 and 4 (maybe even 3) in one?
My current solution for restoring would be iterating though all the increments, as by my understanding, due to the manual downloading, no hardlinks in the increments are possible. Second question: Is my understanding right and is there any other way that would allow restoring without iterating through all the increments?
Thanks for help!