borgbase / docs.borgbase.com

Documentation around BorgBase.com. Learn about backup strategy, setup and automation.
https://docs.borgbase.com
8 stars 7 forks source link

Synology: Does the suggested setup store the borg cache in /root? #11

Open techdaddies-kevin opened 2 years ago

techdaddies-kevin commented 2 years ago

We had borgmatic set up on one of our Synologies, but I can't remember which method we set it up with. Long story short, Synology only provides VERY little space on /. Borg was running fine for months, but its cache was being written to /root/.borg (Or something like that) and so, a time came when / had no space available, so Synology stopped functioning correctly. We had to SSH in to figure out what was going on and to remove the cache. I haven't had a chance to reinvestigate yet, but if the setup instructions are indeed allowing Borg to write to /, they should be adjusted to cause Borg to write its cache to the shared folder location.

m3nu commented 2 years ago

This is true. I usually symlink the .cache folder to the main data folder due to that. If you have many files, this is a must.

Wanna do a PR to document this?

techdaddies-kevin commented 2 years ago

Yeah I can totally write up something later this week. Just to clarify - You only do this symlinking on Synology devices, right? On a standard linux machine, this isn't necessary, right?

m3nu commented 2 years ago

Yes, only on Syno because if you run the backup as root user, there is limited space in /root. So I link it to /volumexx/homes/root or something instead. It could be that /volume/homes/root gets copied during updates, but I'm not sure.