Giter VIP home page Giter VIP logo

Comments (10)

RichardMidnight avatar RichardMidnight commented on July 22, 2024

Yes, likely, but I have not tried it, and it may not be reliable. Shut down as much activity on the system as you can before the backup.

  1. If you have a file path to the samba share and enough rights, then you can set the default directory to that filepath.
  2. By turning off "hide root device" you can backup the running system. However, any files being changed by the system will be in an unknown state. I have successfully backed up the running system, but I have only done it after a fresh reboot so there is not much running.
  3. Any backup should be writable to a USB. The USB will be made bootable when the backup is written to it. However... your Pi must be set to allow USB boot. I think there is a firmware upgrade to pi4s that allow this.

from pi-safe.

TotalCoolness avatar TotalCoolness commented on July 22, 2024

Yes thanks, the only issue I can see is how do you exclude the samba path from being in the backup ? So for example i.e. /backupspath is the samba share and if we backup the running system surely it will try to include that path as well and we cant unmount it cos we want the backup to be saved on the samba share.

Currently my system boots up fine off NVME USB already so I know that part of the problem has been overcome.

from pi-safe.

RichardMidnight avatar RichardMidnight commented on July 22, 2024

I think that is not a problem because pi-safe is copying the bits from the block device (/dev/sda or so) and NOT actual files. This is a big part of why any changes to the drive during the backup can cause corruption. It is best to backup a drive that is not in use.

from pi-safe.

TotalCoolness avatar TotalCoolness commented on July 22, 2024

Well I tried it, it read 256GB in 1 hour, shrunk to 16GB and save on samba share.

Booted with an SD card and tried the restore to another spare NVME drive, it didnt boot.

Also tried using windows version of raspberry pi imager and same thing no boot. No messages, it just cant boot the drive.

from pi-safe.

TotalCoolness avatar TotalCoolness commented on July 22, 2024

I think it could be because it was originally converted from a noobs. Ill play around with it to see if I can work out why.

from pi-safe.

RichardMidnight avatar RichardMidnight commented on July 22, 2024

TotalCoolness, I just tested it and it worked.
I am using a Raspberry Pi 400 and an OMV SMB server.

  1. I flashed an 8GB SD card with Raspberry pi OS, got it up and running and created a connection to my SMB server
  2. Installed PiSafe, changed the default dir to the SMB server, turned off "hide root device"
  3. Using PiSafe, backed up the root drive to the SMB server
  4. Put a 16GB USB stick in the Pi
  5. Restored the image from the SMB server to the USB stick
  6. Rebooted with only the USB stick installed. The Pi booted, the partition resized to 16GB.

from pi-safe.

TotalCoolness avatar TotalCoolness commented on July 22, 2024

Good to know it boots up. Could it be cos I booted up via USB and saved it on the Samba share versus your way of booting via SD card ? Thats the only difference I see.

from pi-safe.

RichardMidnight avatar RichardMidnight commented on July 22, 2024

I just booted from the USB and made a new backup of the live system to SMB.
Then still booted from USB I restored to a second USB stick.
That second USB booted fine.

from pi-safe.

TotalCoolness avatar TotalCoolness commented on July 22, 2024

Thanks for checking that. My theory is that I used to have noobs on it and I converted to the standard 2 partitions using a script on the rapsiberry pi forums and some how it has strange partition table now and this affects backups somehow.

This is the script (usb-boot) on the 1st post. https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=196778 another backup program also has trouble booting sometimes.

from pi-safe.

RichardMidnight avatar RichardMidnight commented on July 22, 2024

Yes, I have had enough problems with noobs in the last few years that I don't use it anymore.

from pi-safe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.