LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-18-2020, 11:13 AM   #1
qajaq
Member
 
Registered: Sep 2008
Location: north-central Florida
Distribution: Lubuntu 19.04, Kubuntu 18.04
Posts: 120

Rep: Reputation: 15
rsync --delete not working on LAN


I use rsync to make daily backups of my main machine's data files (mounted at /libdata) onto an external HDD (mounted at /backups/backdata, also on my main machine).

I have recently set up a second laptop (named Avalon) to mirror my main machine, and I copied all the /libdata files from the main machine onto Avalon by means of physically moving the external HDD from the main laptop to the Avalon mirror laptop.

More recently, then, I've configured both laptops with openSSH (server and client on both machines).

Now, with the external HDD re-attached to my main machine, I am trying to use an rsync command to mirror changes written to the backup onto the new laptop (which is named Avalon) as follows (executed from the main machine):

Code:
rsync -avu --delete /backups/backdata/ Avalon:/libdata
This rsync command successfully copies new and modified files as expected, but does not delete files that have been removed from the backup directories of the external HDD. (I've also tried replacing the rsync source directory with /libdata, but with the same failure to delete.)
 
Old 12-18-2020, 11:20 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,799

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
I guess that is user permission related issue, but without details hard to say more.
Obviously not related directly to LAN.
 
Old 12-18-2020, 01:53 PM   #3
rosehosting.com
Member
 
Registered: Jun 2012
Location: Missouri, USA
Posts: 236

Rep: Reputation: 64
Try to run the same command with the '--dry-run' option:

rsync -av --delete --dry-run /backups/backdata/ Avalon:/libdata | grep deleting

It will show you a list of files/directories rsync would delete if you ran it without the '--dry-run' option.
 
  


Reply

Tags
delete, rsync



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rsync --delete not working shea1roh Linux - Software 8 08-10-2015 10:08 PM
Rsync not working with include and delete. gregmcc Linux - Newbie 5 07-14-2012 01:15 AM
rsync can not rsync files with include filter... xiutuo Linux - Server 2 07-23-2010 02:10 AM
rsync (cygwin on XP) - -delete flag not working. bobby953 Linux - Newbie 1 08-05-2009 10:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration