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). Then all changed or new files are written.

Usually the backup is written to the correct partition but sometimes it appends to /, with serious consequences!

I'm on Ubuntu. The partitions are called Ubuntu Backup 1 and Ubuntu Backup 2. There are lots of parameters to the rsync - --excludes and a list of directories in /.

The mount point is "/media/john/Ubuntu Backup 1" (or 2) whether the writing is to the drive or to /.

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.

It must be a simple error - but what??

Regards,
John

--
 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]

Reply via email to