Article abandoned
Deployment#
docker run --name siyuan -itd -p 6806:6806 -v /opt/my_siyuan_path:/opt/siyuan --restart always b3log/siyuan
Backup#
sudo su
# View the list of containers
docker ps -a
# Create a backup
docker commit -p 7409ce6aae7b siyuan_backup
# Where 403e6db0c is the container ID and siyuan_backup is the backup name
# Check if the backup was successful
docker images
# Convert the image into a file docker save -o [filename] [image]
docker save -o siyuan_backup.tar siyuan_backup
ls
# You can find the compressed package in /home/ubuntu/