正如标题所示,Rsync 无法将文件复制到 Rsync 本身几秒前创建的文件夹中。curlftpfs
我认为这可能是安装 ftp 文件夹的问题。
我尝试在包含带点名称的文件夹内创建一个文件,就像我可以创建它daily.0
一样。touch /mnt/ftp/.../daily.0/test.txt
当我使用编辑器时,会出现nano
以下消息[ Error writing lock file /mnt/ftp/.../daily.0/.test.txt.swp: Operation not supported ]
,但它会创建它。vi
如果我使用像终端一样的编辑器就会冻结。
如果我创建文件夹、复制或移动文件,就没有问题。
我给你留下一些额外的信息:
卷曲文件系统
curlftpfs -o utf8 -o allow_other ${FTP_USER}:${FTP_PASSWD}@${FTP_HOST} /mnt/ftp -v; grep -qs '/mnt/ftp ' /proc/mounts
它使用 rsync 3.1.2 和 3.2.7 进行测试。我也尝试过仅使用 rsync,但它也无法创建文件。
rsnapshot(rsnapshot_ftp.conf 的一部分)
rsync_long_args --delete --delete-excluded --no-owner --no-group --no-perms --no-times --modify-window=3602
backup /persistence/backups/tmp/ ./
输出到 rsnapshot: /usr/bin/rsnapshot -c /etc/rsnapshot_ftp.conf daily;
require Lchown
Lchown module loaded successfully
Setting locale to POSIX "C"
echo 6659 > /var/run/rsnapshot.pid
mkdir -m 0700 -p /mnt/ftp/...
...
mkdir -m 0755 -p /mnt/ftp/.../daily.0/
/usr/bin/rsync -av --delete /persistence/backups/tmp/ /mnt/ftp/.../daily.0/./
rsync: mkstemp "/mnt/ftp/.../daily.0/.backup_to_ftp.tar.lmLoNR" failed: Operation not supported (95)
rsync: mkstemp "/mnt/ftp/.../daily.0/.backup2_to_ftp.tar.lmJrSC" failed: Operation not supported (95)
sent 604,429,298 bytes received 2,640 bytes 172,694,839.43 bytes/sec
total size is 604,280,067 speedup is 1.00
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1205) [sender=3.1.3]
WARNING: Some files and/or directories in /persistence/backups/tmp/ only transferred partially during rsync operation
/usr/bin/logger -p user.err -t rsnapshot[6659] WARNING: Some files and/or \
directories in /persistence/backups/tmp/ only transferred partially \
during rsync operation
touch /mnt/ftp/.../daily.0/
rm -f /var/run/rsnapshot.pid
/usr/bin/logger -p user.err -t rsnapshot[6659] WARNING: /usr/bin/rsnapshot \
-c /etc/rsnapshot_ftp.conf daily: completed, but with some warnings
与 rsnapshot 执行的操作相同,但在 rsync 命令中 (+/-):
mkdir -m 0755 -p /mnt/ftp/.../daily.0/
/usr/local/bin/rsync -va --delete --numeric-ids --delete-excluded /persistence/backups/tmp/ /mnt/ftp/.../daily.0/./
...
rsync: [receiver] mkstemp "/mnt/ftp/.../daily.0/.backup_to_ftp.tar.1HGJ8m" failed: Operation not supported (95)```
...
sent 603,661,017 bytes received 393 bytes 241,464,564.00 bytes/sec
total size is 603,512,067 speedup is 1.00
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1336) [sender=3.2.7]
欢迎任何帮助!
我花了很多时间,我开始认为rsync
inext4
无法处理curlftpfs
...NTFS
请随意留下关于如何在不使用 rsync 的情况下执行 rsnapshot 等操作的意见