Backup to NAS

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
User avatar
Sciamano
Posts: 264
Joined: Sat Oct 15, 2016 12:18 pm
Location: Italy

Backup to NAS

Post by Sciamano »

Hello,
Would it be possible to implement an option in dietpi-backup to allow the backup on an external NAS folder, mounted on the pi via CIFS?
The current system warns that CIFS does not support symlinks correctly, but wouldn't this problem be bypassed by compressing the backup into a tarball, for example?
This would really be useful to those who use NAS drives as storage.
Thanks
User avatar
Fourdee
Site Admin
Posts: 2782
Joined: Tue Feb 06, 2007 1:36 pm

Re: Backup to NAS

Post by Fourdee »

Sciamano wrote:Hello,
Would it be possible to implement an option in dietpi-backup to allow the backup on an external NAS folder, mounted on the pi via CIFS?
The current system warns that CIFS does not support symlinks correctly, but wouldn't this problem be bypassed by compressing the backup into a tarball, for example?
This would really be useful to those who use NAS drives as storage.
Thanks
Great idea, but the issue is rsync, it doesnt support direct save/pipe to any compressed format.
We would still need to rsync the entire rootFS (and user data if selected) to a temporary location that supports symlinks + permissions, then, we could tar/zip/7z it up and send it over.

Or we could try to add a compress option, excluding rsync, however, can see issues with drive boundaries (rsync has a nice option for this).

I'll have a play and see if we can add this option in.
https://github.com/Fourdee/DietPi/issues/816
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
User avatar
Sciamano
Posts: 264
Joined: Sat Oct 15, 2016 12:18 pm
Location: Italy

Re: Backup to NAS

Post by Sciamano »

I see... I don't use rsync much, so I am not really aware of its limitations.
Using external/network storage (which is usually huge) as the backup location would easily allow to keep more than one backup.
I'm not sure how to automate the system restore part though.
Thanks for considering the idea, though :)
Post Reply