Backup errors using rclone to MS Onedrive

andry.nava74

New Member
Jun 20, 2025
2
0
1
Hello,
trying to sync VM backup files to MS OneDrive through rclone, but errors. See log below.
Additional info:
1) rclone seems to be properly configured, creating folders into /mnt area immediately sync them to oneDrive
2) backups to another cloud storage (Google Drive) through another rclone syncPoint perfectly work (same datacenter, same VMs)
Any help is really appreciated.

Thanks oin advance

LOG OF BACKUPS TO ONEDRIVE

()






















Task viewer: VM/CT 101 - Backup

OutputStatus

Stop

Download
INFO: starting new backup job: vzdump 101 --node proxmox --mode snapshot --notification-mode auto --notes-template '{{guestname}}' --compress gzip --remove 0 --storage OneDriveNew
INFO: filesystem type on dumpdir is 'fuse.rclone' -using /var/tmp/vzdumptmp2658459_101 for temporary files
INFO: Starting Backup of VM 101 (lxc)
INFO: Backup started at 2025-06-20 13:28:11
INFO: status = running
INFO: CT Name: mariadb
INFO: including mount point rootfs ('/') in backup
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: create storage snapshot 'vzdump'
Logical volume "snap_vm-101-disk-0_vzdump" created.
INFO: creating vzdump archive '/mnt/OneDrive/ProxmoxBackups/dump/vzdump-lxc-101-2025_06_20-13_28_11.tar.gz'
INFO: Total bytes written: 1385953280 (1.3GiB, 27MiB/s)
INFO: gzip: stdout: Input/output error
INFO: cleanup temporary 'vzdump' snapshot
Logical volume "snap_vm-101-disk-0_vzdump" successfully removed.
ERROR: Backup of VM 101 failed - command 'set -o pipefail && lxc-usernsexec -m u:0:100000:65536 -m g:0:100000:65536 -- tar cpf - --totals --one-file-system -p --sparse --numeric-owner --acls --xattrs '--xattrs-include=user.*' '--xattrs-include=security.capability' '--warning=no-file-ignored' '--warning=no-xattr-write' --one-file-system '--warning=no-file-ignored' '--directory=/var/tmp/vzdumptmp2658459_101' ./etc/vzdump/pct.conf ./etc/vzdump/pct.fw '--directory=/mnt/vzsnap0' --no-anchored '--exclude=lost+found' --anchored '--exclude=./tmp/?*' '--exclude=./var/tmp/?*' '--exclude=./var/run/?*.pid' ./ | gzip --rsyncable >/mnt/OneDrive/ProxmoxBackups/dump/vzdump-lxc-101-2025_06_20-13_28_11.tar.dat' failed: exit code 1
INFO: Failed at 2025-06-20 13:29:05
cp: failed to close '/mnt/OneDrive/ProxmoxBackups/dump/vzdump-lxc-101-2025_06_20-13_28_11.log': Input/output error
INFO: Backup job finished with errors
INFO: notified via target `mail-to-root`
TASK ERROR: job errors


LOG OF WORKING BACKUP TO GOOGLE DRIVE
INFO: starting new backup job: vzdump 100 --node proxmox --mode snapshot --notification-mode auto --notes-template '{{guestname}}' --remove 0 --storage GoogleDrive --compress gzip
INFO: Starting Backup of VM 100 (qemu)
INFO: Backup started at 2025-06-20 08:33:51
INFO: status = running
INFO: VM Name: haos13.1
INFO: include disk 'scsi0' 'local-lvm:vm-100-disk-1' 32G
INFO: include disk 'efidisk0' 'local-lvm:vm-100-disk-0' 4M
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: creating vzdump archive '/mnt/gdrive/ProxmoxBackups/dump/vzdump-qemu-100-2025_06_20-08_33_50.vma.gz'
INFO: issuing guest-agent 'fs-freeze' command
INFO: issuing guest-agent 'fs-thaw' command
INFO: started backup task '5660b550-5e78-4ed1-82e3-2e2c80560443'
INFO: resuming VM again
INFO: 0% (90.6 MiB of 32.0 GiB) in 3s, read: 30.2 MiB/s, write: 17.2 MiB/s
INFO: 1% (329.9 MiB of 32.0 GiB) in 16s, read: 18.4 MiB/s, write: 16.4 MiB/s
INFO: 2% (746.8 MiB of 32.0 GiB) in 31s, read: 27.8 MiB/s, write: 17.4 MiB/s
INFO: 3% (1000.5 MiB of 32.0 GiB) in 39s, read: 31.7 MiB/s, write: 26.3 MiB/s
INFO: 4% (1.3 GiB of 32.0 GiB) in 46s, read: 51.3 MiB/s, write: 28.4 MiB/s
INFO: 5% (1.6 GiB of 32.0 GiB) in 54s, read: 41.2 MiB/s, write: 25.2 MiB/s
INFO: 6% (1.9 GiB of 32.0 GiB) in 1m, read: 47.2 MiB/s, write: 26.0 MiB/s
INFO: 7% (2.4 GiB of 32.0 GiB) in 1m 11s, read: 39.5 MiB/s, write: 23.1 MiB/s
INFO: 9% (2.9 GiB of 32.0 GiB) in 1m 14s, read: 194.5 MiB/s, write: 28.4 MiB/s
INFO: 11% (3.5 GiB of 32.0 GiB) in 1m 17s, read: 213.9 MiB/s, write: 24.3 MiB/s
INFO: 12% (3.9 GiB of 32.0 GiB) in 1m 23s, read: 55.6 MiB/s, write: 23.4 MiB/s
INFO: 13% (4.2 GiB of 32.0 GiB) in 1m 31s, read: 41.2 MiB/s, write: 21.7 MiB/s
INFO: 14% (4.5 GiB of 32.0 GiB) in 1m 35s, read: 77.0 MiB/s, write: 28.9 MiB/s
INFO: 15% (4.9 GiB of 32.0 GiB) in 1m 38s, read: 122.0 MiB/s, write: 30.7 MiB/s
INFO: 16% (5.2 GiB of 32.0 GiB) in 1m 44s, read: 57.4 MiB/s, write: 27.4 MiB/s
INFO: 17% (5.4 GiB of 32.0 GiB) in 1m 50s, read: 42.9 MiB/s, write: 24.6 MiB/s
INFO: 18% (6.0 GiB of 32.0 GiB) in 1m 57s, read: 76.6 MiB/s, write: 24.9 MiB/s
INFO: 21% (6.8 GiB of 32.0 GiB) in 2m, read: 299.7 MiB/s, write: 22.8 MiB/s
INFO: 23% (7.4 GiB of 32.0 GiB) in 2m 3s, read: 193.3 MiB/s, write: 29.4 MiB/s
INFO: 24% (7.7 GiB of 32.0 GiB) in 2m 6s, read: 108.8 MiB/s, write: 28.5 MiB/s
INFO: 25% (8.0 GiB of 32.0 GiB) in 2m 17s, read: 26.7 MiB/s, write: 22.6 MiB/s
INFO: 27% (8.7 GiB of 32.0 GiB) in 2m 20s, read: 239.2 MiB/s, write: 22.9 MiB/s
INFO: 33% (10.7 GiB of 32.0 GiB) in 2m 26s, read: 334.1 MiB/s, write: 27.0 MiB/s
INFO: 34% (10.9 GiB of 32.0 GiB) in 2m 29s, read: 93.0 MiB/s, write: 37.2 MiB/s
INFO: 39% (12.7 GiB of 32.0 GiB) in 2m 32s, read: 596.9 MiB/s, write: 27.7 MiB/s
INFO: 40% (12.9 GiB of 32.0 GiB) in 2m 35s, read: 61.6 MiB/s, write: 30.8 MiB/s
INFO: 45% (14.5 GiB of 32.0 GiB) in 2m 40s, read: 339.9 MiB/s, write: 28.0 MiB/s
INFO: 46% (14.8 GiB of 32.0 GiB) in 2m 43s, read: 106.0 MiB/s, write: 26.9 MiB/s
INFO: 51% (16.3 GiB of 32.0 GiB) in 2m 47s, read: 379.2 MiB/s, write: 22.3 MiB/s
INFO: 52% (16.8 GiB of 32.0 GiB) in 2m 50s, read: 158.3 MiB/s, write: 25.3 MiB/s
INFO: 58% (18.7 GiB of 32.0 GiB) in 2m 55s, read: 387.7 MiB/s, write: 22.9 MiB/s
INFO: 65% (20.8 GiB of 32.0 GiB) in 2m 58s, read: 733.8 MiB/s, write: 31.0 MiB/s
INFO: 69% (22.2 GiB of 32.0 GiB) in 3m 1s, read: 456.8 MiB/s, write: 23.3 MiB/s
INFO: 77% (24.8 GiB of 32.0 GiB) in 3m 4s, read: 909.9 MiB/s, write: 21.8 MiB/s
INFO: 78% (25.0 GiB of 32.0 GiB) in 3m 8s, read: 38.1 MiB/s, write: 26.5 MiB/s
INFO: 83% (26.9 GiB of 32.0 GiB) in 3m 11s, read: 645.2 MiB/s, write: 21.8 MiB/s
INFO: 84% (27.0 GiB of 32.0 GiB) in 3m 14s, read: 25.4 MiB/s, write: 21.4 MiB/s
INFO: 89% (28.7 GiB of 32.0 GiB) in 3m 22s, read: 222.5 MiB/s, write: 21.9 MiB/s
INFO: 90% (28.9 GiB of 32.0 GiB) in 3m 25s, read: 62.8 MiB/s, write: 23.7 MiB/s
INFO: 92% (29.7 GiB of 32.0 GiB) in 3m 28s, read: 279.1 MiB/s, write: 24.1 MiB/s
INFO: 93% (29.8 GiB of 32.0 GiB) in 3m 31s, read: 38.7 MiB/s, write: 36.6 MiB/s
INFO: 94% (30.1 GiB of 32.0 GiB) in 3m 35s, read: 75.2 MiB/s, write: 40.2 MiB/s
INFO: 95% (30.4 GiB of 32.0 GiB) in 3m 47s, read: 27.8 MiB/s, write: 24.3 MiB/s
INFO: 96% (30.9 GiB of 32.0 GiB) in 3m 53s, read: 82.8 MiB/s, write: 24.5 MiB/s
INFO: 100% (32.0 GiB of 32.0 GiB) in 3m 57s, read: 279.7 MiB/s, write: 16.9 MiB/s
INFO: backup is sparse: 26.36 GiB (82%) total zero data
INFO: transferred 32.00 GiB in 237 seconds (138.3 MiB/s)
INFO: archive file size: 1.97GB
INFO: adding notes to backup
INFO: Finished Backup of VM 100 (00:04:07)
INFO: Backup finished at 2025-06-20 08:37:57
INFO: Backup job finished successfully
INFO: notified via target `mail-to-root`
TASK OK
 
cp: failed to close '/mnt/OneDrive/ProxmoxBackups/dump/vzdump-lxc-101-2025_06_20-13_28_11.log': Input/output error
Seems more of an issue with the onedrive client you are using, as it fails to close the file on the one drive mount point. Since there is no official client as far as I could find online, how did you mount the onedrive?
 
Seems more of an issue with the onedrive client you are using, as it fails to close the file on the one drive mount point. Since there is no official client as far as I could find online, how did you mount the onedrive?
Hi Chris, mounted through rclone configuration. two endpoints, one for 1Drive and one for GoogleDrive. 1st doesn't work, 2nd works. stragne thing is that if I manually create a folder in the PMX alias (pointing to mounted endpoint "/mnt/OneDrive/ProxmoxBackups") the folder is synced to onedrive... issue is related to files creation

Here below rclone config

many thanks for your help

=====================================================================================================

Linux proxmox 6.8.12-1-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-1 (2024-08-05T16:17Z) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Jun 20 13:30:47 CEST 2025 on pts/2
root@proxmox:~# rclone config
Current remotes:

Name Type
==== ====
PMX drive
PMX-1D onedrive

e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q>
 
Hi Chris, mounted through rclone configuration. two endpoints, one for 1Drive and one for GoogleDrive. 1st doesn't work, 2nd works. stragne thing is that if I manually create a folder in the PMX alias (pointing to mounted endpoint "/mnt/OneDrive/ProxmoxBackups") the folder is synced to onedrive... issue is related to files creation
Could be a permission problem? as which user did you write the files manually? Maybe also ask in the rclone forum https://forum.rclone.org/ I unfortunately do not have a One Drive to test with
 
Last edited: