You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to sync a directory from one machine to another in periodic intervals via rsync daemon. While I was playing around, I observed that when using --stats flag, the Number of files deleted is showing 0 , though the file gets deleted (as the expectation) from destination.
root@machineA:~# rsync --archive --delete --delete-missing-args --info=progress2 --relative --itemize-changes --stats /var/src/ rsync://address/main
0 100% 0.00kB/s 0:00:00 (xfr#0, to-chk=1/2)
*deleting var/src/a
.d..t...... /var/src/
0 100% 0.00kB/s 0:00:00 (xfr#0, to-chk=0/2)
Number of files: 2 (dir: 2)
Number of created files: 0
Number of deleted files: 0
Number of regular files transferred: 0
Total file size: 0 bytes
Total transferred file size: 0 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 0
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 103
Total bytes received: 34
sent 103 bytes received 34 bytes 91.33 bytes/sec
total size is 0 speedup is 0.00
I tried the same within a machine, syncing contents between two directories, and found that the data here is correct.
root@machineA:~# rm -rf src/a
root@machineA:~# rsync --archive --delete --delete-missing-args --info=progress2 --itemize-changes --stats src/ dest/
*deleting a
.d..t...... ./
0 100% 0.00kB/s 0:00:00 (xfr#0, to-chk=0/1)
Number of files: 1 (dir: 1)
Number of created files: 0
Number of deleted files: 1 (reg: 1)
Number of regular files transferred: 0
Total file size: 0 bytes
Total transferred file size: 0 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 0
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 58
Total bytes received: 31
sent 58 bytes received 31 bytes 178.00 bytes/sec
total size is 0 speedup is 0.00
Is there any configuration to be set or is it an internal issue?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to sync a directory from one machine to another in periodic intervals via rsync daemon. While I was playing around, I observed that when using
--stats
flag, theNumber of files deleted
is showing0
, though the file gets deleted (as the expectation) from destination.I tried the same within a machine, syncing contents between two directories, and found that the data here is correct.
Is there any configuration to be set or is it an internal issue?
Beta Was this translation helpful? Give feedback.
All reactions