graysky2 / profile-sync-daemon

Symlinks and syncs browser profile dirs to RAM thus reducing HDD/SDD calls and speeding-up browsers.
https://wiki.archlinux.org/index.php/Profile-sync-daemon
Other
899 stars 84 forks source link

psd shows mixed recovery-dirs between chrome/chromium/vivaldi #281

Closed simonbcn closed 3 years ago

simonbcn commented 3 years ago
Arch Linux

psd shows mixed recovery-dirs between chrome/chromium/vivaldi:

$ psd p
Profile-sync-daemon v6.42

systemd service: active
resync-timer:    active
sync on sleep:   enabled
use overlayfs:   enabled

Psd will manage the following per /home/juan/.config/psd/.psd.conf:

browser/psname:  chromium/chromium
owner/group id:  juan/1000
sync target:     /home/juan/.config/chromium
tmpfs dir:       /run/user/1000/juan-chromium
profile size:    1,8G
overlayfs size:  0
recovery dirs:   3 <- delete with the c option
dir path/size:  /home/juan/.config/google-chrome-backup-crashrecovery-20201114_233820 (513M)
dir path/size:  /home/juan/.config/google-chrome-backup-crashrecovery-20201114_233617 (513M)
dir path/size:  /home/juan/.config/google-chrome-backup-crashrecovery-20201114_233455 (513M)

browser/psname:  firefox/firefox
owner/group id:  juan/1000
sync target:     /home/juan/.mozilla/firefox/ii5akxyq.default
tmpfs dir:       /run/user/1000/juan-firefox-ii5akxyq.default
profile size:    512
overlayfs size:  0
recovery dirs:   2 <- delete with the c option
dir path/size:  /home/juan/.mozilla/firefox/ii5akxyq.default-backup-crashrecovery-20201114_233820 (4,0K)
dir path/size:  /home/juan/.mozilla/firefox/ewyl3w7y.default-release-backup-crashrecovery-20201114_233820 (75M)

browser/psname:  firefox/firefox
owner/group id:  juan/1000
sync target:     /home/juan/.mozilla/firefox/ewyl3w7y.default-release
tmpfs dir:       /run/user/1000/juan-firefox-ewyl3w7y.default-release
profile size:    75M
overlayfs size:  0
recovery dirs:   2 <- delete with the c option
dir path/size:  /home/juan/.mozilla/firefox/ii5akxyq.default-backup-crashrecovery-20201114_233820 (4,0K)
dir path/size:  /home/juan/.mozilla/firefox/ewyl3w7y.default-release-backup-crashrecovery-20201114_233820 (75M)

browser/psname:  google-chrome/chrome
owner/group id:  juan/1000
sync target:     /home/juan/.config/google-chrome
tmpfs dir:       /run/user/1000/juan-google-chrome
profile size:    372M
overlayfs size:  198M
recovery dirs:   3 <- delete with the c option
dir path/size:  /home/juan/.config/google-chrome-backup-crashrecovery-20201114_233820 (513M)
dir path/size:  /home/juan/.config/google-chrome-backup-crashrecovery-20201114_233617 (513M)
dir path/size:  /home/juan/.config/google-chrome-backup-crashrecovery-20201114_233455 (513M)

browser/psname:  vivaldi/vivaldi-bin
owner/group id:  juan/1000
sync target:     /home/juan/.config/vivaldi
tmpfs dir:       /run/user/1000/juan-vivaldi
profile size:    154M
overlayfs size:  120M
recovery dirs:   3 <- delete with the c option
dir path/size:  /home/juan/.config/google-chrome-backup-crashrecovery-20201114_233820 (513M)
dir path/size:  /home/juan/.config/google-chrome-backup-crashrecovery-20201114_233617 (513M)
dir path/size:  /home/juan/.config/google-chrome-backup-crashrecovery-20201114_233455 (513M)
graysky2 commented 3 years ago

If you're syncing multiple profiles, and something goes wrong that is to be expected. Look at the date-time stamps across the profiles. Seems consistent to me.

simonbcn commented 3 years ago

Something I don't understand. Have the Chromium/Vivaldi recovery dirs same name as those of Google Chrome? Or is it a bug in psd that it is printing the same recovery dirs for all Chromium-based browsers?

browser/psname:  chromium/chromium
.....
recovery dirs:   3 <- delete with the c option
dir path/size:  /home/juan/.config/google-chrome-backup-crashrecovery-20201114_233820 (513M)
dir path/size:  /home/juan/.config/google-chrome-backup-crashrecovery-20201114_233617 (513M)
dir path/size:  /home/juan/.config/google-chrome-backup-crashrecovery-20201114_233455 (513M)
.......
.......
.......
browser/psname:  vivaldi/vivaldi-bin
.......
recovery dirs:   3 <- delete with the c option
dir path/size:  /home/juan/.config/google-chrome-backup-crashrecovery-20201114_233820 (513M)
dir path/size:  /home/juan/.config/google-chrome-backup-crashrecovery-20201114_233617 (513M)
dir path/size:  /home/juan/.config/google-chrome-backup-crashrecovery-20201114_233455 (513M)
graysky2 commented 3 years ago

That is unexpected. I will need to play with it.

simonbcn commented 3 years ago

Today I see this:

$ psd p
Profile-sync-daemon v6.42

systemd service: active
resync-timer:    active
sync on sleep:   enabled
use overlayfs:   enabled

Psd will manage the following per /home/juan/.config/psd/.psd.conf:

browser/psname:  chromium/chromium
owner/group id:  juan/1000
sync target:     /home/juan/.config/chromium
tmpfs dir:       /run/user/1000/juan-chromium
profile size:    1,8G
overlayfs size:  0
recovery dirs:   3 <- delete with the c option
dir path/size:  /home/juan/.config/vivaldi-backup-crashrecovery-20201118_093546 (189M)
dir path/size:  /home/juan/.config/google-chrome-backup-crashrecovery-20201118_093754 (377M)
dir path/size:  /home/juan/.config/google-chrome-backup-crashrecovery-20201117_131055 (377M)

browser/psname:  firefox/firefox
.....

browser/psname:  google-chrome/chrome
owner/group id:  juan/1000
sync target:     /home/juan/.config/google-chrome
tmpfs dir:       /run/user/1000/juan-google-chrome
profile size:    396M
overlayfs size:  0
recovery dirs:   3 <- delete with the c option
dir path/size:  /home/juan/.config/vivaldi-backup-crashrecovery-20201118_093546 (189M)
dir path/size:  /home/juan/.config/google-chrome-backup-crashrecovery-20201118_093754 (377M)
dir path/size:  /home/juan/.config/google-chrome-backup-crashrecovery-20201117_131055 (377M)

browser/psname:  vivaldi/vivaldi-bin
owner/group id:  juan/1000
sync target:     /home/juan/.config/vivaldi
tmpfs dir:       /run/user/1000/juan-vivaldi
profile size:    205M
overlayfs size:  31M
recovery dirs:   3 <- delete with the c option
dir path/size:  /home/juan/.config/vivaldi-backup-crashrecovery-20201118_093546 (189M)
dir path/size:  /home/juan/.config/google-chrome-backup-crashrecovery-20201118_093754 (377M)
dir path/size:  /home/juan/.config/google-chrome-backup-crashrecovery-20201117_131055 (377M)
graysky2 commented 3 years ago

Do you mind trying the latest release and verifying that the issue still exists?

simonbcn commented 3 years ago

I no longer use it.