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
349 stars 44 forks source link

Sync at shutdown #32

Closed csantosb closed 8 years ago

csantosb commented 8 years ago

It is great to have a resync every hour; if I prefer a ten minutes resync, this is fine too, provided I don't forget to modify again the timer file after an upgrade.

Now, what about forcing a last sync just before user decides to shutdown/reboot the pc ? This would allow not being surprised and loosing latest changes.

Just happened to me ...

graysky2 commented 8 years ago

I believe that as long as you start asd.service via systemd, then it [systemd] will do this on reboot/shutdown. The timer just does it between reboots/shutdowns. Are you certain that this is not the case?

csantosb commented 8 years ago

My fault, I jut checked and it works as expected. I wonder why during last week's reboot systemd didn't behave as expected. Probably I did something wrong.