AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-648392

ICIM's questions

Martin Hope
ICIM
Asked: 2023-10-06 15:16:30 +0800 CST

rsync 无法将文件写入它创建的文件夹

  • 5

正如标题所示,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]

欢迎任何帮助!

我花了很多时间,我开始认为rsyncinext4无法处理curlftpfs...NTFS请随意留下关于如何在不使用 rsync 的情况下执行 rsnapshot 等操作的意见

ftp
  • 1 个回答
  • 43 Views
Martin Hope
ICIM
Asked: 2021-07-24 00:34:02 +0800 CST

lxc 发送文件或副本

  • 0

我正在尝试用 lxc 复制文件,现在我已经绝望了。以下是我尝试过的一些命令:

#temp=$(cat 2.sh)
#lxc-attach -n containerName echo $temp > /root/2.sh
#lxc-attach -n containerName cat /root/2.sh
->

#temp=$(cat 2.sh)
#lxc-attach -n containerName -- bash -c 'echo $temp > /root/2.sh'
#lxc-attach -n containerName cat /root/2.sh
->

#lxc-attach -n containerName -- bash -c 'echo $(cat 2.sh) > /root/2.sh'
->cat: 2.sh: No such file or directory

#lxc-attach -n containerName -- bash -c 'echo "$(cat 2.sh)" > /root/2.sh'
->cat: 2.sh: No such file or directory


#lxc file push 2.sh containerName/root/
->Error: not found

是->输出

容器是用构建的lxc-,不会出现在lxc list列表中,而是出现在lxc-ls列表中。

欢迎任何帮助

bash lxd
  • 2 个回答
  • 497 Views
Martin Hope
ICIM
Asked: 2021-07-22 03:03:38 +0800 CST

找不到 Debian LXC 命令

  • 1

我正在尝试使用 LXC 进行操作,并且我已经能够使用lxc-*命令进行管理,但现在我被迫复制文件并且我被卡住了,因为我无法复制文件,我已经阅读了使用lxc fileI可以做到。但始终会出现未找到命令的消息。

我试过谷歌搜索、检查论坛、尝试奇怪的东西等。但这些都没有奏效。

我想我需要安装lxc-clientand or lxd,但我无法安装它,或者即使我设法安装它,复制命令对我也不起作用。以下是我尝试过的一些事情:

apt install snapd
snap refresh
snap install snapd
snap install core

snap install lxd

apt-get install lxc-client
apt-get install lxd

我知道有数百个类似的问题,几乎所有的问题都有答案,但我不明白他们做了什么让它对他们有用。

我也不太明白 lxc 必须使用两种不同类型的命令有什么区别,使用lxc -ls的命令和使用空格lxc 文件的命令

debian installation lxc
  • 1 个回答
  • 869 Views
Martin Hope
ICIM
Asked: 2021-07-15 10:49:04 +0800 CST

Debian安装完成后运行脚本

  • 0

我正在使用preseed自动安装 debian。
我希望能够在 Debian 安装结束时运行一个名为“run.sh”的脚本:

#!/bin/bash
touch /root/example.txt

我已经尝试了几个通过 google 找到的模型(我将这些命令添加到 preseed.cfg):

d-i late_command string cp -a /cdrom/preseed/run.sh /target/root; chmod 777 /root/run.sh; /root/run.sh;

d-i preseed/late_command string \
  in-target cp run.sh /root/ && in-target chmod 755 /root/run.sh \
  cd /target; \
  chmod +x ./run.sh; \
  chroot ./ ./run.sh;

我已经尝试了我所看到的一切,并且我想到了,在任何情况下我都没有成功。我所取得的最大成就是红屏显示文件“run.sh”已损坏

我刚从2015年看到一个类似的问题

linux ubuntu debian installation bash
  • 1 个回答
  • 1301 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve