Comments (10)
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.
- If you have a file path to the samba share and enough rights, then you can set the default directory to that filepath.
- 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.
- 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.
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.
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.
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.
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.
TotalCoolness, I just tested it and it worked.
I am using a Raspberry Pi 400 and an OMV SMB server.
- I flashed an 8GB SD card with Raspberry pi OS, got it up and running and created a connection to my SMB server
- Installed PiSafe, changed the default dir to the SMB server, turned off "hide root device"
- Using PiSafe, backed up the root drive to the SMB server
- Put a 16GB USB stick in the Pi
- Restored the image from the SMB server to the USB stick
- Rebooted with only the USB stick installed. The Pi booted, the partition resized to 16GB.
from pi-safe.
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.
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.
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.
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)
- pisafe uninstall -y doesn't work if updates available HOT 2
- Does this bash support backup raspberry system which boot from hdd or usb ? HOT 1
- auto-expand of file system on restore stuck in a reboot loop because of overlay file system HOT 10
- [Question]Is there any possiable to backup without a second SD/USB/HDD? HOT 1
- CLI backup issues HOT 3
- Script does not allow saving to external mounted drive HOT 5
- cron job issue when new version checking HOT 3
- Pisafe stalls on reading sdcard. HOT 16
- Any way to use it on Windows (or WSL)? HOT 6
- Support of ZStandard compression HOT 3
- Problem shrinking Raspi-Endeavouros SDCard. HOT 6
- Ignore specific partitions? HOT 1
- USBoot Backup? HOT 30
- Feature Request: integrate gpg encryption of images HOT 4
- pigz not working HOT 4
- Syntax error on Debian 11. HOT 4
- SD card >16Gb: nothings happens after warning. No backup HOT 3
- On backup, always installing pishink HOT 11
- Time after time HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pi-safe.