Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Have rsync Replace Files With More Recent Version

Featured Replies

Hey all,

 

I'm in a weird situation with rsync where I can't seem to be able to have it copy over the most recent version and replace deprecated versions of a file.  I use an audio program called Pro Tools, and changes are done in the .ptx file itself, with incremental changes saved to the file itself.  The issue is that rsync just sees test.ptx is both in the synced folder and the original, ignoring the fact that the synced file is an old version, the one that was copied over the first time.  So the question is if it's possible to have rsync copy over the most recent versions of files, removing the old versions and replacing them with the new version of the file with the same name.

 

As an example, here's a script that transfers from a local backup I have of my server to an offsite server (cause I haven't figured out how to get the two computers to communicate, hence I've had to shlep a hard drive over every time I visit to sync the two).

 

rsync -ah "/mnt/disks/WD_easystore_264D/AlexNAS_Backup/test/" "/mnt/user/test"

 

Solved by strike

  • Community Expert
  • Solution

Try 

rsync -auv "/mnt/disks/WD_easystore_264D/AlexNAS_Backup/test/" "/mnt/user/test"

 

Test it with a dry run first to see what it does without actually changing anything:

rsync -auvn "/mnt/disks/WD_easystore_264D/AlexNAS_Backup/test/" "/mnt/user/test"

 

  • Author
53 minutes ago, strike said:

Try 

rsync -auv "/mnt/disks/WD_easystore_264D/AlexNAS_Backup/test/" "/mnt/user/test"

 

Test it with a dry run first to see what it does without actually changing anything:

rsync -auvn "/mnt/disks/WD_easystore_264D/AlexNAS_Backup/test/" "/mnt/user/test"

 

 

That did it.  Thanks!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.