December 4, 20232 yr I'm trying to create a script batch that will push files added/modified in the past 24 hours to an external hard drive. The idea is to let these files accumulate, and then use the external to update my off-site backup server every few weeks. When both my servers were Windows, I would use 'date accessed', but this field seems to be identical to 'date modified' on linux. I don't fully understand -ctime, but it appears to do be the date/time the file hit my server. This is exactly what I want. Does Unraid every update/use this field? I don't want to wake up one morning to find Unraid spewing 100TB to my 4TB ext HDD. So far, my script batch is looking like this: rsync -avh --no-links --backup --backup-dir=/mnt/user/backup/~TRASH~/ --files-from=<(find /mnt/user -name BD-Rips -prune -o -name appdata -prune -o -name apps_linux -prune -o -name backup -prune -o -name domains -prune -o -name Downloads -prune -o -name Downloads_TEMP -prune -o -name system -prune -o -ctime -2 -type f) / /mnt/user/backup/Nightly/ Is there a more elegant way to list those exclusions? To combine them into a single '-prune' command? I found some instructions online, but it wasn't very clear. I'm very new to all this Linux stuff. Edited December 4, 20232 yr by nmkaufman
December 14, 20232 yr Author Solution If anyone finds this thread in the future, Unraid does occasionally touch ctime. It's not useful as an incremental backup trigger. I instead switched to using -mtime, and configured my software to touch the modified time when extracting archives.
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.