You are not logged in.

#1 2023-08-15 18:52:51

slytux
Member
From: New York
Registered: 2010-09-25
Posts: 129

Rsync --delete not working as intended

IO error encountered -- skipping file deletion

I checked and it doesn't delete a file on the destination if it is gone from the target.

Thanks,
Szilveszter

Offline

#2 2023-08-15 18:55:05

slytux
Member
From: New York
Registered: 2010-09-25
Posts: 129

Re: Rsync --delete not working as intended

I am using 3.2.7 in Arch and backing up to a debian bookworm with rsync 3.2.7

Offline

#3 2023-08-15 19:33:42

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,433

Re: Rsync --delete not working as intended

IO error = rsync was unable to read/write, ( ? permission issue, ?disk failure)

If you can paste exact error it may be more useful.

Offline

#4 2023-08-16 04:27:16

slytux
Member
From: New York
Registered: 2010-09-25
Posts: 129

Re: Rsync --delete not working as intended

The exact error is the first line I posted.  It is not a hard disk issue.  I backed up my entire desktop but it seems extraneous files could accumulate over time if it is not fixed.

Offline

#5 2023-08-16 04:29:01

slytux
Member
From: New York
Registered: 2010-09-25
Posts: 129

Re: Rsync --delete not working as intended

I did 'touch file' on the source and then it gets copied on the first run.  Then, I delete the file and run a second rsync.  Afterward, I noticed that it is not gone from the destination.

Offline

#6 2023-08-16 05:09:10

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,433

Re: Rsync --delete not working as intended

post rsync command you are running.

Offline

#7 2023-08-29 08:37:53

slytux
Member
From: New York
Registered: 2010-09-25
Posts: 129

Re: Rsync --delete not working as intended

I found out the solution.  I had to add --ignore-errors to the command I was running.

Offline

Board footer

Powered by FluxBB