LinuxQuestions.org
Help answer threads with 0 replies.
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 11-04-2015, 10:41 AM   #1
slufoot80
Member
 
Registered: Nov 2011
Posts: 69

Rep: Reputation: Disabled
Cool Rsync problems


Ok I have done an initial rsync and I have ran updates which is working fine

command I am running is:

Code:
rsync -au --update --ignore-existing /nas_ftp5/Customer/Imaging/Troy/fmccfax /fax01
but my source is changing and removing files so what I want is my destination to match if a file is deleted on the source I want it deleted on the destination
but when I ran the new command

Code:
rsync -av --delete --progress /nas_ftp5/Customer/Imaging/Troy/fmccfax /fax01
the destination has more data then the source, the source is at 5 gig and the destination is at 8 gig, I want them to both match

Last edited by slufoot80; 11-04-2015 at 10:42 AM.
 
Old 11-04-2015, 12:56 PM   #2
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Have you tried;

Code:
rsync -avu --delete source_folder/ destination_folder/
 
Old 11-07-2015, 02:12 PM   #3
hortageno
Member
 
Registered: Aug 2015
Distribution: Ubuntu 22.04 LTS
Posts: 240

Rep: Reputation: 67
Quote:
Originally Posted by slufoot80 View Post
Ok I have done an initial rsync and I have ran updates which is working fine

command I am running is:

Code:
rsync -au --update --ignore-existing /nas_ftp5/Customer/Imaging/Troy/fmccfax /fax01
but my source is changing and removing files so what I want is my destination to match if a file is deleted on the source I want it deleted on the destination
but when I ran the new command

Code:
rsync -av --delete --progress /nas_ftp5/Customer/Imaging/Troy/fmccfax /fax01
the destination has more data then the source, the source is at 5 gig and the destination is at 8 gig, I want them to both match
Maybe the source has hard linked files and you're not preserving the hard links?
 
  


Reply

Tags
linux, 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 problems, can you look at my command? - Rsync gurus. Spuddy Linux - Software 4 09-21-2010 10:25 AM
Rsync problems fusion1275 Linux - Software 3 08-06-2009 06:55 AM
Rsync problems fahl Linux - Networking 3 08-22-2008 04:36 AM
rsync problems rje_NC Fedora 2 07-19-2004 05:25 AM
rsync problems 69_rs_ss Linux - Networking 8 05-12-2004 12:53 PM

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

All times are GMT -5. The time now is 09:37 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