Windows[]
::IndexedDBbackup v0.92 by Ar-cen-ciel ::Requires 7zip to be installed ::declare variables SETLOCAL ENABLEEXTENSIONS SET EXEC=C:\Program Files\7-Zip\7z.exe SET EXTENSIONID=hkgmldnainaglpjngpajnnjfhpdjkohh SET BACKUP=C:\Users\%USERNAME%\Downloads\kancolle\indexedb\ SET USERDIR=C:\Users\%USERNAME%\AppData\Local\Google\Chrome\User Data\Default\ SET DESTINATION=kc3backup.zip SET INDEXDB=%USERDIR%IndexedDB\chrome-extension_%EXTENSIONID%_0.indexeddb.leveldb\ SET LCSTORE=%USERDIR%Local Storage\chrome-extension_%EXTENSIONID%_0.localstorage SET LCSTOREJRNL=%USERDIR%Local Storage\chrome-extension_%EXTENSIONID%_0.localstorage-journal ::conditionals for multi-stage backup IF EXIST %DESTINATION% MOVE %DESTINATION% kc3backup.current.zip IF EXIST kc3backup.03.zip MOVE kc3backup.03.zip "%BACKUP%kc3archivebackup [%date%].zip" IF EXIST kc3backup.02.zip MOVE kc3backup.02.zip kc3backup.03.zip IF EXIST kc3backup.01.zip MOVE kc3backup.01.zip kc3backup.02.zip IF EXIST kc3backup.current.zip MOVE kc3backup.current.zip kc3backup.01.zip ::backup the latest Kc3Kai data. "%EXEC%" a %DESTINATION% "%INDEXDB%" "%LCSTORE%" "%LCSTOREJRNL%"
Linux[]
#!/bin/dash #IndexedDBbackup v0.71 by Ar-cen-ciel #Requires tar and gzip to be installed #declare variables EXTENSIONID=hkgmldnainaglpjngpajnnjfhpdjkohh DESTINATION=~/KC3Kai-backup/kc3backup.tgz BACKUP=~/KC3Kai-archivebackup USERDIR=~/.config/google-chrome/Default INDEXDB=$USERDIR/IndexedDB/chrome-extension_${EXTENSIONID}_0.indexeddb.leveldb/ LCSTORE=$USERDIR/Local Storage/chrome-extension_${EXTENSIONID}_0.localstorage LCSTOREJRNL=$USERDIR/Local Storage/chrome-extension_${EXTENSIONID}_0.localstorage-journal #flush existing current temporary archive if exists if [ -f kc3backup.current.tgz ]; then rm kc3backup.current.tgz;fi #backup the latest Kc3Kai data. tar -czf kc3backup.current.tgz "$INDEXDB" "$LCSTORE" "$LCSTOREJRNL" #conditionals for multi-stage backup if [ ! -d "$BACKUP" -a -f kc3backup.03.tgz ];then mkdir "$BACKUP";fi if [ -f kc3backup.03.tgz ];then mv kc3backup.03.tgz "$BACKUP[date -u +"%Y-%m-%d %H:%M"].tgz";fi if [ -f kc3backup.02.tgz ];then mv kc3backup.02.tgz kc3backup.03.tgz;fi if [ -f kc3backup.01.tgz ];then mv kc3backup.03.tgz kc3backup.02.tgz;fi if [ -f "$DESTINATION" ];then mv kc3backup.03.tgz kc3backup.01.tgz;fi if [ -f kc3backup.current.tgz ] then;mv kc3backup.current.tgz "$DESTINATION"
Reserving this thread name for developing faction-based gameplay.