Skip to content

Instantly share code, notes, and snippets.

@pajlada
Created April 7, 2018 14:53
Show Gist options
  • Save pajlada/cc080f9a0484e30380a46278cb1e4b36 to your computer and use it in GitHub Desktop.
Save pajlada/cc080f9a0484e30380a46278cb1e4b36 to your computer and use it in GitHub Desktop.
$ ./transfer-all.sh forsen unlolrebells2 unlols
Starting REDIS transfer script
Streamer: forsen
Old username: unlolrebells2
New username: unlols
Are you sure you want to transfer all redis-data from unlolrebells2 to unlols? ( y/n) y
Continuing...
Moving last seen value
Unable to move last seen value
Transferring 51426 lines from unlolrebells2 TO unlols
Test:
"63341"
(integer) 1
Starting SQL transfer script
DATABASE: pb_snusbot
Old username: unlolrebells2
New username: unlols
Are you sure you want to transfer all sql-data from unlolrebells2 to unlols in d atabase pb_snusbot? (y/n) y
Continuing...
Moving roulette stats new user unlols to old user unlolrebells2
Moving duel stats new user unlols to old user unlolrebells2
Both old user and new user have dueled, do a complicated combine (TODO)
Moving user stats from new user unlols to old user unlolrebells2
Removing new user unlols
Updating old user username from unlolrebells2 to unlols
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment