sync_to_snapshot(1)

πŸ’– NAME πŸ’–

sync_to_snapshot β€” rsync your lil files up to Amazon EC2, bestie 🌸


✨ SYNOPSIS ✨

sync_to_snapshot Rsync the indicated files and directories to Amazon EC2
and store in a named EBS snapshot. Snapshot will be incrementally
updated if it already exists. The Version tag will be updated.

So like β€” you point it at some files and dirs, it rsyncs them over to Amazon EC2 and tucks them into a named EBS snapshot. If that snapshot already exists? It just gets incrementally updated πŸ”„ (no drama, no starting over, we love efficiency). And the Version tag gets updated too, periodt.

Oh and also? It'll hit up the default EC2 endpoint URL β€” unless the environment variable EC2_URL is set, in which case it uses that instead. iykyk πŸ’…


πŸŽ€ OPTIONS πŸŽ€

  • snapshot β€” the snapshot name. Required, so don't forget it, bestie 😭 (it's giving "I literally cannot run without this")
  • access_key β€” your EC2 access key πŸ”‘
  • secret_key β€” your EC2 secret key 🀫 (yes it's secret, no we don't talk about it in the group chat)
  • image β€” the Server AMI ID. Defaults to ami-ccf405a5, which is Ubuntu Maverick 32bit ✨
  • type β€” the Server type. Defaults to m1.small 🧚
  • username β€” the username for logging into the instance (that's "ubuntu") 🫢
  • filesystem β€” the type of filesystem to create: bfs,cramfs,ext*,minix,ntfs,vfat,msdos. ✨

Okay so real talk β€” anything with a /sbin/mkfs.* executable on the server side will work. And it defaults to ext4 πŸ’œ


πŸ‘‘ AUTHOR πŸ‘‘

Man page: Olivier Sallou <osallou@debian.org> 🌈


and that's the whole vibe, bestie β€” sync_to_snapshot version 1.0, dated September 7, 2012 πŸ¦‹ slay, go snapshot something iconic βœ¨πŸ’…

πŸ“¦ where this page comes from