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.

rsync overwrites existing files and other problems

Featured Replies

Hi there,

 

I am fighting with rsync now for some hours. The basic idea is to extract a list of pathnames of unseen movies from the XBMC mysql db and then sync these files over to an external USB drive for travel fun.

 

The python script generating the list works fine (if there is interest, I may post it) and then it calls rsync with some parameters:

 

rsync --progress -r --modify-window=1 --delete --delete-excluded --files-from=/tmp/tmpglpJgF --exclude='/*' /mnt/user/video/ /mnt/disk/ego500gb/

 

Notes:

/mnt/disk/ego500gb is an extern USB drive NTFS formatted and mounted using SNAP.

The temp file contains the list of movie files relative to the source path.

 

Now the problems:

 

-rsync overwrites existing files on the USB drive (but the whole point of using rsync is to only copy files that are not yet there to save time!) The --modify-window parameter didn't help :(

 

-rsync doesn't delete files that exist in the target directory but are absent in the source file list. The --exclude parameter did not help (which I found in some forum where someone had the same problem)

 

Anyone solved any of these problems?

 

Thanks for caring,

JC

Archived

This topic is now archived and is closed to further replies.

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.