I do my backups with rsync. Now rsync gets stuck transferring my email folders.
I use 20.04 and thunderbird 78.13.0 (64-Bit). I start my backup with this:
#!/bin/bash
rm -Rf /home/anja/.cache/*
for GERAET in /media/anja/* ; do
if [[ "$GERAET" == /media/anja/INTENSO ]]; then
echo $GERAET
rsync -va --delete --exclude={**/trash*,**/Cache*,**/cache*} /home/anja/.thunderbird $GERAET/anja/.thunderbird
exit
fi
done
the backup is running and then gets stuck at a different file everytime I try this. I already tried repairing the thunderbird email folders, but I have loads of email accounts and loads of folders there so I doubt I caught all of them.
Adding the option --info=progess2 gives me the output:
168,997,741 3% 28.99MB/s 0:00:05 (xfr#818, ir-chk=3506/4923)
.thunderbird/lunzq248.default/Mail/.inbox.directory/konsum.mdir/cur/1290027311.2286.qAc64:2,S
And there it just stops and waits until infinity or until I kill it with Ctrl + C
$ ll ~/.thunderbird/lunzq248.default/Mail/.inbox.directory/konsum.mdir/cur/1290027311.2286.qAc64:2,S
-rwxrwxr-x 1 anja anja 167069 Jul 18 16:49 /home/anja/.thunderbird/lunzq248.default/Mail/.inbox.directory/konsum.mdir/cur/1290027311.2286.qAc64:2,S*
It looks like the file contains an email with a part of an pdf attachement and ends on:
DQowMDAwMDAwMDAwIDY1NTM1IGYNCjAwMDAwMDAwMDAgNjU1MzUgZg0KMDAwMDAwMDAwMCA2NTUz
NSBmDQowMDAwMDAwMDAwIDY1NTM1IGYNCjAwMDAwMDAwMDAgNjU1MzUgZg0KMDAwMDAwMDAwMCA2
NTUzNSBmDQowMDAwMDAwMDAwIDY1NTM1IGYNCjAwMDAwMDAwMDAgNjU1MzUgZg0KMDAwMDAwMDAw
MCA2NTUzNSBmDQowMDAwMDAwMDAwIDY1NTM1IGYNCjAwMDAwMDAwMDAgNjU1MzUgZg0KMDAwMDAw
MDAwMCA2NTUzNSBmDQowMDAwMDAwMDAwIDY1NTM1IGYNCjAwMDAwMDAwMDAgNjU1MzUgZg0KMDAw
MDAwMDAwMCA2NTUzNSBmDQowMDAwMDAwMDAwIDY1NTM1IGYNCnRyYWlsZXINCjw8L1NpemUgOTcx
Pj4NCnN0YXJ0eHJlZg0KMTE2DQolJUVPRg0K
------=_Part_1306_1154394907.1290028505681--
I finally found the reason for this mess: My hard disk was getting broken.... yes gradual process luckily.
So I tried to get as much as possible saved of my thunderbird data ( which was obviously in the critical reason of the hard disk) changed the dis, installed anew and I guess that was it.
So not a rsync problem, but a hardware problem.