[小技巧] 群晖bitwarden和vps上的服务通过rsync同步数据

date
Feb 7, 2024
slug
tip-synology-bitwarden-sync-with-vps
status
Published
summary
小技巧
tags
tip
type
Post
URL

Problem & Summary

    Solution

     
    # log in to synology dsm
    sudo -i
    ssh-keygen
    # append localhost:/root/.ssh/id_rsa.pub to dest_host:/root/.ssh/authorized_keys
    
    # make this a cron job 
    [ -d /volume1/docker/bitwarden ] && rsync -avz -e "ssh -p 22022" --delete root@dest_host.com:/data/bitwarden/data/ /volume1/docker/bitwarden/data && cd /volume1/docker/bitwarden && docker-compose down && docker-compose up -d
    
    notion image

    Screenshots

     

    © Ying Bun 2021 - 2024