Diet Pi Backup using ftp?

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
Aidan Hedley
Posts: 9
Joined: Tue Sep 08, 2015 3:58 pm

Diet Pi Backup using ftp?

Post by Aidan Hedley »

I am trying to run dietpi-backup over network to a USB HDD mounted on another DietPi I tried curlftp but the mounted filesystem appears as 'fuse' so unsupported, is there a workaround to share the ext4 as a drive, or can I only backup to a local USB drive? Hope you can help.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Diet Pi Backup using ftp?

Post by Fourdee »

Aidan Hedley wrote:I am trying to run dietpi-backup over network to a USB HDD mounted on another DietPi I tried curlftp but the mounted filesystem appears as 'fuse' so unsupported, is there a workaround to share the ext4 as a drive, or can I only backup to a local USB drive? Hope you can help.
Hi Aidan,

The reason for the ext2/3/4 requirement is due to the following:
- Must backup Unix permissions
- Must backup symlinks
A safety measure to prevent a broken restore.

You could try the following to backup to FTP (or any other file system)
- Create a local backup on the SDcard: /mnt/dietpi-backup
- Compress and create a backup on ftp mount: tar -pcvf /mnt/ftp_client/My_DietPi_Backup.tar.bz2 /mnt/dietpi-backup
You should now have a compressed backup on the FTP server.

When you want to restore:
rm -R /mnt/dietpi-backup/*
tar -xf /mnt/ftp_client/My_DietPi_Backup.tar.bz2 -C /

Run dietpi-backup, set location to /mnt/dietpi-backup and restore.
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.
Aidan Hedley
Posts: 9
Joined: Tue Sep 08, 2015 3:58 pm

Re: Diet Pi Backup using ftp?

Post by Aidan Hedley »

Thanks for the reply, I simplified matters and brought three USB sticks one for each pi!
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Diet Pi Backup using ftp?

Post by Fourdee »

Aidan Hedley wrote:Thanks for the reply, I simplified matters and brought three USB sticks one for each pi!
Lol, yep, i do the same for testing :)
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.
Post Reply