Hi John, > > I have a drive with 2 main partitions; I plug it into a USB port and > > run a script that chooses one of the partitions (using a "last > > touched" test on a dummy file).
Does the script mount the chosen partition? Or could the script be running the rsync before something else has mounted it? > > My only defence currently is to run "df /" frequently during the > > backup but even this is not foolproof as sometimes the writing of > > new files comes late in the backup. That seems unlikely unless there is more than one rsync command with the script doing something to alter what's mounted in between. Or the device is suffering somehow and causing the USB bus to make it disappear and re-appear; ‘dmesg -Hx’ would show this. Does the USB device have some power-saving feature which makes it disappear when it's not being used? rsync may spend quite a bit of time at the beginning working out what to copy rather than writing to the USB drive. > > It must be a simple error - but what?? Hard to say without seeing the script. -- Cheers, Ralph. -- Next meeting: Online, Jitsi, Tuesday, 2026-01-06 20:00 Check to whom you are replying Meetings, mailing list, IRC, ... https://dorset.lug.org.uk New thread, don't hijack: mailto:[email protected]

