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
910 stars 88 forks source link

Manually altering sync frequency on Debian #30

Closed livnev closed 11 years ago

livnev commented 11 years ago

Hi, I've noticed that systemd timers obviously wont work on a Debian/Ubuntu system, so I was wondering what could be done to set (or even determine the default) sync frequency on non-systemd distributions. It would be cool if this was documented. Thanks!

EDIT: In anything-sync-daemon one can put this into cron: */10 * * * * /usr/bin/anything-sync-daemon sync &> /dev/null Is there an equivalent sync command for psd?

graysky2 commented 11 years ago

Non-systemd inits should make use of the included /etc/cron.hourly/psd-update which will preform the sync operation on the hour. Users wishing more frequent updates can do exactly as you have posted in their root crontab, i.e.

 */10 * * * *     /usr/bin/profile-sync-daemon resync &> /dev/null

Please close if this solves your issue.

livnev commented 11 years ago

Thanks for getting back to me. It would be great if the sync functionality of the /usr/bin/profile-sync-daemon script itself (i.e. that sync command) was documented somehow, because in the manpage it warns NOT to call that script directly.

graysky2 commented 11 years ago

You're right... I will re-word to be more clear. Thanks for the feedback.

graysky2 commented 11 years ago

Ack... I had a typo in my reply above which I corrected.

What I had: /10 * * * \ /usr/bin/profile-sync-daemon sync &> /dev/null

What I MEANT to type: /10 * * * \ /usr/bin/profile-sync-daemon resync &> /dev/null

The notable difference being the resync function is called, NOT the sync function. Again, I will re-word the manpage.

livnev commented 11 years ago

Thanks for clearing that up. But for anything-sync-daemon, the equivalent function is called sync? (as it says in the Arch Wiki)

graysky2 commented 11 years ago

I need to standardize the the asd options bring them in line with psd's wording. I often think about merging the two into a single product but don't have the time right now.

I just pushed v5.32 which contains the less ambigious manpage and a documented rsync option: https://github.com/graysky2/profile-sync-daemon/commit/07fc46a00aed16f656ba67e2e935bc08bc25c1b4

Thanks for bringing this up. If you were confused, I am sure that others were as well.

livnev commented 11 years ago

Great, it should be clearer to new users now.

I'd love to help out with merging but I'm afraid that I'm nowhere near experienced enough yet, but maybe some day.