WIKI-T...TO-DATE(1p)

πŸ’– WIKI-T...TO-DATE(1p) πŸ’–

okay bestie, so this is a User Contributed Perl Documentation page, section 1p, for the tool wiki-toolkit-revert-to-date. it's giving time machine energy and i'm obsessed. πŸ•°οΈβœ¨


✨ NAME ✨

wiki-toolkit-revert-to-date β€” Revert the state of a Wiki::Toolkit instance to an earlier point in time.

like, literally. you point it at a date and it rewinds your wiki to how it looked back then. no cap. πŸ¦‹


🌸 SYNOPSIS 🌸

# Removes any changes made to a Wiki::Toolkit instance since a given date
#  (and optionally time), restoring it to the state at that point.

wiki-toolkit-revert-to-date --type postgres
         --name mywiki \
         --user wiki  \
         --pass wiki \
         --host 'db.example.com' \
         --port 1234 \
         --date 2007-01-05 \
         --time 11:23:21

look at that glow-up of a command line. she's organized, she's got backslashes, she's ready. πŸ’…


πŸ‘‘ DESCRIPTION πŸ‘‘

so the way this works: it takes three mandatory arguments, and then five optional ones. periodt.

πŸŽ€ the mandatory ones (you HAVE to give these, no skips)

  • type β€” The database type. Should be one of 'postgres', 'mysql' and 'sqlite'. those are your three options, bestie, pick one. 🌈
  • name β€” The database name. yep, just the name of the database. iconic. πŸ’œ
  • date β€” The date to revert the state back to, in the format YYYY-MM-DD. this is the whole point of the tool, so like, don't forget it. πŸ—“οΈ

πŸ’– the optional ones (slay, you get choices)

  • time β€” The time (on the specified date) to revert the state back to, in the format hh:mm:ss. If not specified, will use midnight. so if you don't say anything, it's midnight o'clock, Cinderella style. πŸ•›
  • user β€” The user that connects to the database. It must have permission to create and drop tables in the database. yes this is important β€” if that user can't create and drop tables, this is not gonna go how you want. πŸ‘€
  • pass β€” The user's database password. keep it secret, keep it safe. πŸ™ˆ
  • host β€” The hostname of the machine the database server is running on (omit for local databases). local bestie? just don't include it. remote bestie? include it. πŸ’»
  • port β€” The port number that the database server is expecting connections to. the lil doorway number. πŸšͺ
lowkey reminder: this tool removes any changes made to a Wiki::Toolkit instance since a given date (and optionally time), restoring it to the state at that point. so it's a real revert, not a "haha what if" revert. make sure that's what you actually want before you send it. πŸ’€

πŸ’œ AUTHOR πŸ’œ

Nick Burch. king behavior, honestly. πŸ‘‘


     Copyright (C) 2006 Nick Burch.  All Rights Reserved.

This code is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.

free software, same terms as Perl itself, we love a generous license moment. 🌸


🌈 SEE ALSO 🌈

  • Wiki::Toolkit

go read that one too, it's the main character and this is its little time-travel sidekick. ✨


and that's the whole page bestie, you ate it. πŸŽ€

this was from perl v5.32.0, dated 2021-01-04, and it lives under the WIKI-T...TO-DATE(1p) name. mwah. πŸ’‹πŸ¦‹

πŸ“¦ where this page comes from