graysky2 / anything-sync-daemon

Symlinks and syncs user specified dirs to RAM thus reducing HDD/SDD calls and speeding-up the system.
https://wiki.archlinux.org/index.php/Anything-sync-daemon
MIT License
345 stars 45 forks source link

asd find crashrecovery needs rework #56

Closed tsonntig closed 2 years ago

tsonntig commented 5 years ago

One Problem with asd finding wrong crashrecoverys :

Anything-sync-daemon v5.85 on Arch Linux

 Systemd service is currently active.
 Systemd resync service is currently active.
 Overlayfs v23 is currently active.

Asd will manage the following per /run/asd.conf settings:

 owner/group id:     thomas/100
 target to manage:   /home/thomas/.cache
 sync target:        /home/thomas/.cache-backup_asd
 tmpfs target:       /tmp/asd-thomas/home/thomas/.cache
 dir size:           1,3G
 overlayfs size:     17M
 recovery dirs:      1 <- delete with the c option
  dir path/size:     /home/thomas/.mozilla/firefox/thomas_firefox_standart-backup-crashrecovery-20190722_020242 (346M)

The second Problem is that the find crashrecovery command takes a long time on startup.

My suggested Solution: change find "${BACKUP%/*}" -type d -name '*crashrecovery*' 2>/dev/null|sort -r to find "${BACKUP%/*}" -maxdepth 1 -type d -name '*crashrecovery*' 2>/dev/null|sort -r

magnetophon commented 4 years ago

Just ran into this as well.

manorit2001 commented 2 years ago

Fixed in v5.86