amazon web services - Mimicking WHM backup rotations with S3 Lifecycle -


i'm setting new managed vps server amazon s3. whm has s3 backup natively implemented now, does not support deletion/rotation. i'd keep set of backups this:

  • 2 daily backups in s3
  • 1 weekly backup in s3
  • 4 weekly backups in glacier
  • 12 monthly backups in glacier
  • yearly backups in glacier

after whm backups run, s3 bucket contains file structure:

       yyyy-mm-dd/          accountname1.tar.gz          accountname2.tar.gz          accountname3.tar.gz 

i might want different backup rules different accounts (some more active, less so). given how many whm accounts using s3 backup, surely solved problem? searched stackoverflow , google, i'm not finding info on how use s3 lifecycle other "move files older x."

if isn't feasible, feel free recommend different whm backup strategy (though host's custom offsite backup prohibitively expensive, not option).

use different folders (s3 path) different file types. create lifecycle rule on path. time want objects in s3, and/or glacier time , expiration

/daily/yyyy-mm-dd/    <- no lifecycle rule      accountname1.tar.gz      accountname2.tar.gz      accountname3.tar.gz  /weekly/yyyy-mm-dd/    <- lifecyclerule "weekly" files older 7 days      moved glacier, files older 45 days removed glacier      accountname1.tar.gz      accountname2.tar.gz      accountname3.tar.gz  /monthly/yyyy-mm-dd/    <- lifecyclerule "monthly" files older 1 days      moved glacier, files older 366 days removed glacier      accountname1.tar.gz      accountname2.tar.gz      accountname3.tar.gz 

Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -