无法使用 tar 将数据从 Android 平板电脑备份到笔记本电脑!

无法使用 tar 将数据从 Android 平板电脑备份到笔记本电脑!

我用来tar将数据从 Android 平板电脑备份到笔记本电脑。但它显示出一些错误。

ravbholua@ravbholua-Aspire-5315:/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/9$ tar -cvf /media/ravbholua/f34890dd-20d2-4d78-92c9-1de7c0957f00/jackal.tar .
./
tar: ./33: Cannot open: Operation not supported
tar: ./34: Cannot open: Operation not supported
tar: ./35: Cannot open: Operation not supported
tar: ./36: Cannot open: Operation not supported
tar: ./37: Cannot open: Operation not supported
tar: ./38: Cannot open: Operation not supported
./50/
./50/62/
tar: ./50/209: Cannot open: Operation not supported
tar: ./50/210: Cannot open: Operation not supported
tar: ./50/211: Cannot open: Operation not supported
tar: ./50/216: Cannot open: Operation not supported
tar: ./50/217: Cannot open: Operation not supported
tar: ./50/218: Cannot open: Operation not supported
./50/236/
./50/249/
tar: ./50/903: Cannot open: Operation not supported
tar: ./50/904: Cannot open: Operation not supported
tar: ./50/905: Cannot open: Operation not supported
tar: ./50/906: Cannot open: Operation not supported
tar: ./50/907: Cannot open: Operation not supported

ravbholua@ravbholua-Aspire-5315:/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/9$ sudo tar -cvf /media/ravbholua/f34890dd-20d2-4d78-92c9-1de7c0957f00/jackal.tar .
[sudo] password for ravbholua: 
tar: .: Cannot stat: Permission denied
tar: Exiting with failure status due to previous errors

(我无法从鹦鹉螺那里得到备份,即使从这个线程

(我想补充一点,终端中的 android 文件的文件名在我的笔记本电脑中没有清晰显示。我已经这个线程 关于这一点。)

编辑

我使用rsync命令但同样的错误。

ravbholua@ravbholua-Aspire-5315:/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50$ rsync -avz ./ ~/Dow*
sending incremental file list
./
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1078": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1079": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1080": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1081": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1082": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1083": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1085": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1086": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1087": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1088": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1089": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1090": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1091": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1094": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1103": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1154": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1155": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1156": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1157": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1158": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1159": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1160": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1161": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1162": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1171": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1172": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1278": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1279": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1280": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1282": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1283": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1284": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1285": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1286": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1287": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1397": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1398": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1399": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1400": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1401": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1402": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1403": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1404": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1405": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1406": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1407": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1408": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1409": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1501": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1512": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1635": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1645": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1646": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1647": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1650": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1655": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1656": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1657": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1660": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1661": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1662": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1663": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1664": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1665": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1666": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1667": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1668": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1669": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1670": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1671": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1675": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1676": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/209": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/210": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/211": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/216": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/217": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/218": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/2841": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/2842": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/2849": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/2850": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/2851": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/3118": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/903": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/904": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/905": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/906": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/907": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/910": Operation not supported (95)
1096/
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1096/1102": Operation not supported (95)
1636/
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1636/1637": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1636/1638": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1636/1639": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1636/1640": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1636/1641": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1636/1642": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1636/1643": Operation not supported (95)
rsync: send_files failed to open "/run/user/ravbholua/gvfs/mtp:host=%5Busb%3A002%2C003%5D/65537/50/1636/1644": Operation not supported (95)
236/
249/
62/

sent 2096 bytes  received 1916 bytes  2674.67 bytes/sec
total size is 2364535131  speedup is 589365.69
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1070) [sender=3.0.9]

答案1

是的,我有解决方案。查看有 2 个连接平板电脑的选项。 1) 媒体设备 (MTP) 2) 摄像头 (PTP)

我一直在使用第一个,通过命令行我无法做到这一点,并且通过 GUI,我无法保留时间戳。此选项使用 mtp 进行连接。 在此输入图像描述

然后昨天,它触动了我的心,我通过第二个选项(即相机)进行连接。现在通过 GUI(shotwell 软件),我可以导入文件。然后在nautilus中,我发现它不是通过mtp而是通过gphoto2连接的。 在此输入图像描述

现在我可以使用命令行并通过cp -a保留时间戳进行复制并且它有效。现在我知道所有命令行命令都tar可以与任何外部 HDD 或笔式驱动器一起使用。真是如释重负!

答案2

我遇到了类似的问题并找到了类似的解决方案,只是我无法选择在我的设备上使用 PTP 而不是 MTP。我所做的是:我安装了 gphotofs 并运行

gphotofs ~/some-mount-point

然后我就可以像以前一样使用 rsync 了!

相关内容