radian-software / straight.el

🍀 Next-generation, purely functional package manager for the Emacs hacker.
MIT License
2.75k stars 151 forks source link

Help with cloud sync and Straight : whats the LEAST I need to sync to minimise traffic? #1133

Open rileyrg opened 11 months ago

rileyrg commented 11 months ago

I'm using rclone/syncrclone to back up my Linux configs and apps. One of which is my emacs config which features a pretty standard straight directory.

My syncing is very very slow over sftp and I would like to minimise what goes over the wire : if I can only sync meta files which tells emacs/straight what to do on the other end of the sync all the better. So - ideally I would not sync repos and build, but rather only default.el? Or would I need to also sync modfied? Example:

eg suppose on laptop 1 I do a git pull and restart emacs - straight rebuilds loads of packages that the pull updated. Whats the least I can sync to the cloud to then be pulled down onto laptop B that will tell straight to also pull these packages and rebuild? Can that happen? Or MUST I sync the straight/repos directory, default.el and then straight will notice build is out of sync with repos and do the build ? Note that we can assume both laptops have the same emacs build installed at least.

Hopefully this is clear if not, ring the bell ;)

progfolio commented 11 months ago

You should only need your init file and any lockfiles in use to reproduce your setup.