2026-03-12 20:51:59
This commit is contained in:
11
bash/backup_tiddly_notes.sh
Normal file
11
bash/backup_tiddly_notes.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
DIR=/app/persistent_docker/tiddlywiki
|
||||
WIKI=mywiki
|
||||
BACKUPDIR=/mnt/yavin4/data/a.Very_Important_Data/backup_TiddlyWiki
|
||||
DATE=`date +%Y-%m-%d_%H-%M`
|
||||
cd ${DIR}
|
||||
tar -cvf - ${WIKI} | gzip > ${BACKUPDIR}/${WIKI}_${DATE}.tar.gz
|
||||
cd ${BACKUPDIR}
|
||||
find ./ -name '${WIKI}*.tar.gz' -mtime +45 -exec rm {} \;
|
||||
|
||||
Reference in New Issue
Block a user