billw2 / rpi-clone

A shell script to clone a booted disk.
BSD 3-Clause "New" or "Revised" License
2.56k stars 333 forks source link

RPI-CLONE to NAS #79

Open xCozmox opened 5 years ago

xCozmox commented 5 years ago

Hello I have multiple Raspberries running in my network. I want to make a clone on weekly basis of each of them to my NAS. I mounted the NAS into my Raspberry /mnt/backup

and now my question: Can I use rpi-clone to make a weekly backup into the mounted location /mnt/backup/image_ddmmyyyy.img ?

Thanks a lot for your help.

billw2 commented 5 years ago

rpi-clone can't backup to .img files, but I will look into adding that option.

On Wed, 28 Aug 2019 01:12:55 -0700 xCozmox notifications@github.com wrote:

Hello I have multiple Raspberries running in my network. I want to make a clone on weekly basis of each of them to my NAS. I mounted the NAS into my Raspberry /mnt/backup

and now my question: Can I use rpi-clone to make a weekly backup into the mounted location /mnt/backup/image_ddmmyyyy.img ?

Thanks a lot for your help.

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/billw2/rpi-clone/issues/79

SolarDuck commented 5 years ago

Re backing up to an image file, there has been some initial work done in Issue#53. When coupled with SSHFS the file can be network connected. The use of a sparse file in Issue#53 may be worth looking into but may not be well understood by some users. While looking at use of an image file, how about also adding some compression options too, please? The other backup software I have been using for my RPi systems is fsarchvier, which adopts a different approach but has some nice features that rpi-clone could be enhanced with.

Thank you for all the great work.

xCozmox commented 5 years ago

I found this. bkup_rpimage

It has the .img option and it has the gzip option. Maybe you can use it for this project? Greets, xcozmox

xCozmox commented 5 years ago

I created a blog entry on the automation of a raspberry pi towards a NAS. pi-backup Maybe there is some useful input for you?