public_notes/utils/sync-config
2024-02-22 21:20:52 +09:00

19 lines
480 B
Bash

#!/usr/bin/env bash
# paths
dropbox_src_root='remote:notes'
dropbox_src_memos=${dropbox_src_root}/memo/public
dropbox_src_assets=${dropbox_src_root}/_Assets/public
mirror_dest_root=/home/kazbo/notes_public_items_mirror
mirror_dest_memos=${mirror_dest_root}/memo/
mirror_dest_assets=${mirror_dest_root}/assets/
git_repo_root=/home/kazbo/public_notes
git_repo_dest=${git_repo_root}/content
# commands
RCLONE='rclone --copy-links'
RSYNC='rsync -a --copy-links --delete'
GIT=git