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

πŸ“¦
version 0.87 Β· 2 versions
, in fedora 43

πŸ’– wiki-toolkit-revert-to-date β€” the rewind button for your wiki πŸ’–

okay bestie so this is a section 1 page from the User Contributed Perl Documentation, and it's about wiki-toolkit-revert-to-date, which is literally the "undo everything since Tuesday" button for a Wiki::Toolkit instance. no cap. it's giving time travel, but for databases. πŸ¦‹


✨ NAME ✨

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

like, it takes your wiki and goes poof back to how it looked on some specific day. iconic behaviour honestly. πŸ’…


🌸 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

see how the line breaks go? that's not me being messy, that's the actual shape of it, and the backslashes are doing the heavy lifting so your shell doesn't get confused. 🫢


πŸŽ€ DESCRIPTION πŸŽ€

so the way this works is you tell it where your database lives and when you wanna be, and it yeets all the changes made after that moment. the wiki wakes up feeling like it's that date again. main character energy fr fr.

the three mandatory arguments (you literally cannot skip these, not even once) πŸ‘‘

  • type β€” the database type. should be one of 'postgres', 'mysql' and 'sqlite'. pick your fighter. ⭐
  • name β€” the database name. that's your wiki's home address basically.
  • date β€” the date to revert the state back to, in the format YYYY-MM-DD. this is the when. πŸ’–

the five optional arguments (nice to have, but so helpful) ✨

  • time β€” the time (on the specified date) to revert the state back to, in the format hh:mm:ss. if you don't specify it, it'll just use midnight. so like, the very start of that day. dramatic, honestly. πŸŒ™
  • user β€” the user that connects to the database. important: it must have permission to create and drop tables in the database. like, this isn't a "would be nice" thing, it needs that power. πŸ”₯
  • pass β€” the user's database password. keep it secret, keep it safe, bestie. πŸ™ˆ
  • host β€” the hostname of the machine the database server is running on (omit this one for local databases, she's already home). 🏠
  • port β€” the port number that the database server is expecting connections to. πŸšͺ

πŸ‘‘ AUTHOR πŸ‘‘

Nick Burch


     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.


🌈 SEE ALSO 🌈

  • Wiki::Toolkit

and that's the whole thing, bestie, you're officially a rewind-tool expert πŸ’…βœ¨

signing off β€” this was perl v5.42.0, dated 2025-07-25, from the WIKI-TO...-TO-DATE(1) manual page in the User Contributed Perl Documentation. mwah. πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from