The old "rm -Rf $FOLDER" trick

OK - I’ve mentioned many times on this forum - I host my own Cloud Sync solution : ResilioSync…

So - I decided to add that ThinkPad with Ubuntu 26.04 (that had been running Bazzite earlier) to all my regular Sync folders…

I always point them at ~/ResilioSync/ (e.g. ~/ResilioSync/scripto for my shell scripts, ~/ResilioSync/Music for a subset of my music in mp3 format - which I mostly listen to on my phone via bluetooth - so lossless FLAC is pointless).

But - for some reason the sh!tty ResilioSync installer created ~/Resilio Sync/ with a SPACE in the middle!

I incrementally added stuff like “scripto” to ~/ResilioSync/scripto and more…

I must not have been paying attention when I added Music - it must have gone to ~/Resilio Sync/Music/ … But I didn’t notice or realise!

Then I decided - I don’t want ~/Resilio Sync/ - at all… just muddies the water… So I “rm -Rf ~/Resilio\ Sync

Didn’t notice anything “strange”…

Then I went out for an afternoon after work ride and listen to music (on my Android Phone).

My music stopped playing… Tried to jump to another song… “Can’t play this file…”… I refresh my Music folder in the app - IT’S EMPTY!

What a SHYTE system! It shouldn’t do that…

It’s not fatally irreversible - I get home and on my Desktop PC running Ubuntu 24 - I have it set in Resilio Sync “keep deleted files and folders” (and it keeps them for 30 days)… So I just had to
cd ~/ResilioSync/Music/.sync/Archive

And there’s all my folders (by Artist / Band) - so :
mv * ~/ResilioSync/Music/.

And I’ve got all my schizz back - phew! But not so quick on the phone - it’s having to re-sync all 100GB again from scratch over wifi!

And - I was using that share in my JellyFin media server too - for Music… it’s TOTALLY trashed ALL the metadata I manually configured - hours and hours of work fine tuning! e.g. I had at least 8 AC/DC albums - now it’s only showing 3 - I know their 1978 album “Powerage” is there - but I can’t find it in JellyFin… pezzo di merda!

I think I’m going to unsync that share from JellyFin…

This shonky app should NOT be allowed to delete stuff of everything else, everywhere else!

2 Likes

It gets worse - I suspect - 'cause I’m inherently lazy - when the shitty ResilioSync “connect” wizard (it’s a 100% web UI on linux) asked me where I wanted to sync the “Music” share to on the new computer - did I select $HOME/ResilioSync/Music ?

No!

I just followed the filesystem tree (through a shitty web UI) to /home/x/Resilio\ Sync/. and probably selected that itself - distracted and doing 10 different things at once!

I need to pay more attention… Both my daughters reackon I’m probably AuHD or whatever it’s called…

i.e. “neurospicy” in both departments - on the autism spectrum, and on the ADHD spectrum… Daughter 1 was diagnosed as Autistic as an adult, Daughter 2 was diagnosed as ADHD as an adult…

Anyway regardless of my cavalier attitude - that SHYTE app should NOT be allowed to just go and remotely DELETE the same content on other nodes in the sync chain!

2 Likes

Well,that is what sync means … keep everything the same.
I do sympathize with your predicament… what is a Linux app doing putting blanks in filenames?

1 Like