LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-04-2021, 08:46 PM   #1
kevinbenko
Member
 
Registered: Jun 2005
Location: Fargo, North Dakota
Distribution: Debian Stable {Probably forever}
Posts: 633

Rep: Reputation: 174Reputation: 174
Question Problems with a Backup Via Rsync


{{{I had a stroke in 2011, and I am brain-damaged and my short term memory is broken}}}

I have a 1/2 TB flash drive and once a month, I backup my music library to this flash drive, as I need all of my ID3 tags to be complete and correct. {yes, I am somewhat anal-retentive}

My rsync command is:

rsync --archive --delete --verbose --progress --stats {source} {destination}

Now, my {source} is approximately 184Gb, and it has generally worked as planned, but today it took alot longer than usual, and the {destination} was approximately 300Gb.

QUESTION:

I am asking how this has happened, how is the {destination} about 1.6 times the {source}

Are my rsync parameters incorrect?

{PS: yes, I really do the extended versions of the parameters}

Thank you for reading my question, and I would appreciate any assistance in this matter.

Have a great day!
 
Old 07-04-2021, 09:08 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,341
Blog Entries: 28

Rep: Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145
Offhand, I don't see any issues with your command string. Me, I usually use

Code:
rsync -av [source] [target]
for backups.

You might want to take a look at the diff or meld commands. They may help you identify irregularities between the source and target. (Diff is command line; meld is GUI.)
 
Old 07-04-2021, 09:25 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,993

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
Could it be a recursive. The -a (archive) is really a collection of parameters.
 
Old 07-04-2021, 09:44 PM   #4
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Recursive would not affect it since he is doing source -> destination. If, however, he has managed to do a source -> source at some time it may have a subdir in the source that accounts for the extra data. A typo in the past could also have given him extra space in the destination.

I suggest that, as has already been suggested, you look at both the source and the destination carefully to see if maybe something has been duplicated on either the source or destination (or both).
 
Old 07-05-2021, 01:35 AM   #5
kevinbenko
Member
 
Registered: Jun 2005
Location: Fargo, North Dakota
Distribution: Debian Stable {Probably forever}
Posts: 633

Original Poster
Rep: Reputation: 174Reputation: 174
OK, I will look at the {destination} and see if anything looks "hinkey".... I will tell you what I did to myself in 1 or 2 days....

Thank you for your responses.....
 
Old 07-08-2021, 11:03 AM   #6
kevinbenko
Member
 
Registered: Jun 2005
Location: Fargo, North Dakota
Distribution: Debian Stable {Probably forever}
Posts: 633

Original Poster
Rep: Reputation: 174Reputation: 174
CRAPCRAPCRAP!!!!!

I messed up on the rsync command.
It was, as usual, for me, to screw up with the ending '/' on the {source}.

Someone please kick me in the head!!!!!
 
Old 07-08-2021, 06:36 PM   #7
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Yep, ending the source path with a / says "transfer the contents of this directory" while not ending it with the / says "transfer this directory and all its contents". I have been bitten that way myself.

In your case since you did it one way one time and the other way another time it duplicated almost everything.
 
  


Reply



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
Archiving via rsync via shell script waddles Linux - Software 3 02-04-2013 04:33 PM
LXer: Rsync Backup for Windows, Linux Knoppix, and Other Smart Technologies in Handy Backup by Novos LXer Syndicated Linux News 0 12-24-2011 11:43 AM
LXer: Backup with rsync and rsync.net LXer Syndicated Linux News 0 09-14-2010 04:20 PM
Using RSync to backup a secondary off-site backup server pezdspencer Linux - Software 4 06-29-2007 03:40 PM
Using rsync to backup data. Best way to backup folders? Micro420 Linux - General 2 11-23-2006 01:13 AM

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

All times are GMT -5. The time now is 10:58 PM.

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