Incremental Backups and S3

tbutler

Well-Known Member
Feb 11, 2004
59
9
158
If I use incremental backups, the documentation says that those backups are only supported with rsync destinations. Does that mean I cannot use S3 as an additional destination, or does it simply mean the backups that arrive at S3 will not be incremental? I don't mind if the S3 backups are just standard ones, but I don't have enough room on my server for a bunch of full backups, which makes incremental much more appealing locally.

Assuming one cannot use S3 as an additional destination at all if incremental is turned on, does anyone happen to have a good guide for spinning up a nice little AWS instance that could be an rsync destination while using as little CPU time on the Amazon side as possible?

Thanks!
 
Last edited by a moderator:

tbutler

Well-Known Member
Feb 11, 2004
59
9
158
Scratch the AWS instance idea, I think -- that looks like it'd cost at least $10/month before storage costs, which is significantly more than storing to S3. Rsync.net looks like an interesting option for that price range, but I'd really like to stick to just S3 or something like it (e.g. Wasabi). Assuming I'd have to use rsync, I'm wondering if there's any unforeseen difficulties with writing a script that does the following each day after cpbackup completes:
  1. Compresses the latest copy of each incremental backup into a tar.gz archive.
  2. Uses the aws-cli tool to send it to an S3 compatible storage server
  3. Deletes the tar.gz archive
That seems to me something I could code fairly easily and would allow incremental backups, since the tarballs of a directory with hard links should be a full fledge, genuine backup. The only question would be: how would these then be restored since they aren't cPanel's standard archives? If the system were to go down, could I decompress all of these individual tarballs in the /backups directory and cPanel would accept them?
 

tbutler

Well-Known Member
Feb 11, 2004
59
9
158
That's wonderful to hear. I've been working on a script, only hindered by a tad of issue with the Perl S3 API I'm trying to figure out. I believe there's a hook with cPanel to run a script after cpbackup finishes, isn't there? I think I ran across that the other day. Thanks for the help!