Backing up DietPi to NAS drive

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
Jimbroze
Posts: 2
Joined: Wed May 15, 2019 8:23 pm

Backing up DietPi to NAS drive

Post by Jimbroze » Wed May 15, 2019 8:50 pm

I have a few machines running DietPi, one of which has an external drive attached. While that machine has no problem backing up to the attached drive, I've realised that dietpi-backup does not work over samba.

Can anyone tell me the easiest way to backup all DietPi machines to the same ext4 NAS drive? I assume one of the cloud/backup packages but could anyone recommend one? I'm not looking for anything fancy, just a lightweight package that can perform a regular scheduled backups from multiple servers.

Many thanks,
Jim

User avatar
MichaIng
Site Admin
Posts: 1870
Joined: Sat Nov 18, 2017 5:21 pm

Re: Backing up DietPi to NAS drive

Post by MichaIng » Sun May 19, 2019 11:24 pm

@Jimbroze
Mount the samba share as drive to e.g. /mnt/samba. You can do that e.g. via dietpi-drive_manager > network drives.

Then start dietpi-backup and select /mnt/samba or some sub directory as target. That should work. Since rsync has some internal mechanism to sync to network resources directly, we plan to implement this to dietpi-backup in the future, so it would then be not required to mount the share.

Jimbroze
Posts: 2
Joined: Wed May 15, 2019 8:23 pm

Re: Backing up DietPi to NAS drive

Post by Jimbroze » Tue May 21, 2019 8:03 pm

Thanks @MichaIng.
I tried that but it produces an error as the file system is listed as CIFS through the Samba share rather than EXT4. Could this be due to Samba settings?

User avatar
MichaIng
Site Admin
Posts: 1870
Joined: Sat Nov 18, 2017 5:21 pm

Re: Backing up DietPi to NAS drive

Post by MichaIng » Sun May 26, 2019 12:31 am

@Jimbroze
Ah sorry, forgot that of course dietpi-backup checks if the target file system supports UNIX permissions. Without backing up permissions, recovering the backup would lead to a broken system.

CIFS does not support permissions, that's indeed the problem. AFAIK with NFS it would be possible as long as the NFS server file system, where the share points to, supports UNIX permissions as well: ext4, F2FS, BTRFS and such.

Post Reply