我正在尝试将我的 Django 网站从 AWS 迁移到 DigitalOcean。我正在关注此教程
我的问题是我无法访问rsync
我的文件。正如信息所示,我可以通过 ssh 连接到我的 Digital Ocean 服务器
来自 mysite/settings.py
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os
BASE_DIR = os.path.dirname(os.path.dirname(__file__)) # which equal at mysite-aws-folder dir
命令
localhost:mysite-aws macuser$ ls -al
total 24
drwxr-xr-x@ 7 macuser staff 238 Jul 25 16:24 .
drwxr-xr-x@ 9 macuser staff 306 Jul 26 13:37 ..
-rw-r--r--@ 1 macuser staff 8196 Aug 9 14:22 .DS_Store
drwxr-xr-x@ 20 macuser staff 680 Jul 25 16:04 bin
drwxr-xr-x@ 19 macuser staff 646 Jul 25 16:04 mysite-aws-folder
drwxr-xr-x@ 3 macuser staff 102 Jul 25 16:04 include
drwxr-xr-x@ 3 macuser staff 102 Jul 25 16:04 lib
localhost:mysite-aws macuser$ rsync -avP mysite-aws-folder [email protected]:/var/www/html/
building file list ...
2001 files to consider
rsync: connection unexpectedly closed (8 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at /SourceCache/rsync/rsync-45/rsync/io.c(453) [sender=2.6.9]
localhost:mysite-aws macuser$