Skip to content

Instantly share code, notes, and snippets.

@zbyna
Created November 6, 2022 04:10
Show Gist options
  • Save zbyna/ad8f3a00cc17ff4a65cfba6c1ea9d88a to your computer and use it in GitHub Desktop.
Save zbyna/ad8f3a00cc17ff4a65cfba6c1ea9d88a to your computer and use it in GitHub Desktop.
Autohotkey scripts for Linkding backup
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
RunWait, %ComSpec% /C dockerdefault.bat && docker cp "E:/linkding_database/db.sqlite3" linkding:/etc/linkding/data/ && docker container restart linkding
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
; tzn. když to spouštíš z Plochy tak Plocha zbyňo :-) a tedy c:\
RunWait, %ComSpec% /C dockerdefault.bat && docker cp linkding:/etc/linkding/data/db.sqlite3 "E:/linkding_database/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment