LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums 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 08-17-2025, 08:23 PM   #1
road hazard
Member
 
Registered: Nov 2015
Posts: 272

Rep: Reputation: Disabled
Will moving files around on the same hard drive trigger rsync?


I have about 60TB of media on my Plex server. This server does a daily backup (just changes) to a remote server with LuckyBackup (rsync). On any given day, it only copies a few gigs so no big deal.

My Plex database is corrupt so I need to re-do it. Without boring you with the details, I need to use the file manager (Nemo) and move the files to a temporary spot on the same drive and then move them right back. I don't want LuckyBackup to see 60TB of data as 'new' and kick off a full backup so will I be OK?

I did some Googling and I think so long as I keep the files on the same drive (file system), mtime shouldn't be updated. I also did a small test with a 400 meg file and when I moved it out of its' folder and back in and kicked off LuckyBackup again, it DID display that file (because it noticed SOMETHING different about it) but it looks like it just did a quick file size/time check and decided it was the same file and didn't copy it.

I think I'll be good to go but has anyone done anything like this and can give me a confidence boost?
 
Old 08-18-2025, 12:48 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,998
Blog Entries: 21

Rep: Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288Reputation: 5288
When you move a file, the file doesn't change but the old and new parent directories do. I think rsync would notice that.
 
Old 08-18-2025, 12:56 AM   #3
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,543

Rep: Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518
Agree with rsync, try: rsync -avc source/ destination/
-a = archive
-v = verbose
-c - checksum to ensure content level accuracy (I believe this will slow down the copy)

-av = will be one of the optimal ways to go
 
Old 08-18-2025, 01:30 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 26,460

Rep: Reputation: 8608Reputation: 8608Reputation: 8608Reputation: 8608Reputation: 8608Reputation: 8608Reputation: 8608Reputation: 8608Reputation: 8608Reputation: 8608Reputation: 8608
yes, rsync can compare the local and remote files and skip them if they are identical. If you not specified something else (like time based or forced sync or ??)
 
Old 08-24-2025, 08:44 AM   #5
road hazard
Member
 
Registered: Nov 2015
Posts: 272

Original Poster
Rep: Reputation: Disabled
Thanks for all the replies!

I'm happy to announce that adjusting the dates did NOT trigger a rsync copy. I kept the files on the same drive and just moved them to a new directory and right back and all was well.
 
  


Reply

Tags
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
Dumb question about rsync, backups and moving drives around road hazard Linux - General 3 07-18-2025 05:38 PM
Trigger jenkins build with URL trigger when using git? jonizen Linux - Server 1 10-14-2011 01:07 PM
Moving files from a Linux hard drive to a Windows Vista Premium hard drive WolfMan51 Linux - Hardware 5 07-12-2011 09:19 AM
really need help moving ntfs partition files on the same hard drive Fb1985 Linux - Newbie 2 11-19-2007 11:06 AM

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

All times are GMT -5. The time now is 06:09 PM.

Contact Us - Advertising Info - Rules - Privacy - Donations - Contributing Member - LQ Sitemap - "Weather apps tell you it'll rain. Wyndo tells you when to go."
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