KW-BACKUP(1)

πŸ“¦ version 0.10, in ubuntu stonking

πŸŽ€ NAME πŸŽ€

kw-backup β€” save and restore all of kw's internal data πŸ’Ύβœ¨


✨ SYNOPSIS ✨

kw backup [<path>]
kw backup (-r | --restore) <path> [(-f | --force)]
kw backup (--verbose)

πŸ’– DESCRIPTION πŸ’–

okay so bestie, here's the tea β˜• β€” kw-backup is your girl for keeping kw's whole inner world safe.

Give it a <path> and it'll bake you a tar.gz file, drop it right at that <path>, and stuff it with everything chilling inside the KW_DATA_DIR folder. That's the whole vibe. 🌸

And if you don't hand it a path at all? No stress β€” the backup just goes straight into your current directory. Periodt. πŸ’…


πŸ’… OPTIONS πŸ’…

  • -r, --restore <path> β€” the glow-up option ✨ this one brings all your kw data back from the dead. It extracts the tar.gz sitting at <path> and tucks everything back into the KW_DATA_DIR folder like nothing ever happened. BUT β€” if it bumps into files with the same name while restoring, it will by default stop and ask you how you wanna proceed 🫢. If you just want to straight-up replace every file in KW_DATA_DIR with whatever's in the backup, go ahead and use the --force option.
  • --verbose β€” the chatty mode πŸ—£οΈ this makes the kw program spill out debug messages so you can watch it track its own progress. It's genuinely so useful when you're debugging, and it makes spotting possible errors way easier. iykyk πŸ”

🌈 EXAMPLES 🌈

Want a backup file to just appear in your current directory? Run:

kw backup

You can also tell it exactly where to stash the backup. Say you want it in /documents/backup β€” then run:

kw backup /documents/backup

To bring a backup back, use the --restore option. Say you wanna restore the backup stored at /documents/backup/kw-backup-from-yesterday.tar.gz β€” run:

kw backup --restore /documents/backup/kw-backup-from-yesterday.tar.gz

ngl bestie, that --force flag is not playing around β€” it will just replace everything in KW_DATA_DIR with the contents of your backup. Iconic, but be sure before you commit. πŸ’€

and that's the whole page, bestie β€” kw-backup, saving and restoring kw's internal data since forever πŸ’– this lil manual came from the kw-backup - Save... kw internal data() pages, so go forth and back up your life fr fr πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from