rpi-clone
Ansible | rpi-clone | |
---|---|---|
7 | 30 | |
8 | 2,460 | |
- | - | |
6.0 | 0.0 | |
about 2 months ago | 2 months ago | |
Shell | ||
GNU General Public License v3.0 or later | BSD 3-clause "New" or "Revised" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Ansible
-
Considerations for a long-running Raspberry Pi
I use some Pis for various things in my house including Zeroes through CM4s and 4Bs.
The Zeroes run Raspbian configured with the read-only filesystem option. I have found it necessary to uninstall `unattended-upgrades` because the overlayfs employed for read-only root caches disk writes in RAM and the update/upgrade process exhausts RAM. For the same reason I disable swap. It makes no sense to swap to RAM on a 512GB system.
Upgrades are tedious since they require disabling overlayfs, rebooting, upgrading, rebooting, and enabling overlayfs. I wrote Ansible playbooks to perform these tasks. (https://github.com/HankB/Ansible/tree/main/Pi)
I have a Pi 4B performing as a file server and running Debian (not Raspbian) It boots from an SD card so that the entire HDDs can be used for a ZFS pool. To reduce wear and tear on the SD card I have mounted `/var` to a ZFS filesystem. I should probably use `tmpfs` for `/tmp`.
I use a Pi CM4 to run HomeAssistant and that boots and runs from an NVME SSD where durability is less an issue.
-
Setup your RPi with only one command using Ansible
Nice. I've written some playbooks for my herd of Pis as well. (https://github.com/HankB/Ansible/tree/main/Pi) I dropped by mainly to say "well done!"
-
"Bootstrapping" a Debian install/config from a Raspberry Pi?
I use Ansible for a lot of repetitive tasks on R-Pi OS - mostly for a bunch of zeroes. https://github.com/HankB/Ansible/tree/main/Pi I haven't bothered automating stuff on Debian but it could be done.
-
Unable to boot the headless Pi
I've been using Ansible to configure Pis instead of the imager just because I've done it manually in the past and just automated that process. https://github.com/HankB/Ansible/blob/main/Pi/provision-local.yml
-
How many SD cards have you destroyed over the years while running Pis? This is going to be my 4th. Not sure what am I doing wrong, I know they are generally sensible for power outages, but come on, or is it just me?
I've started employing the readonly configuration available in raspi-config for systems that don't require writable storage. I've written some Ansible playbooks to make that a little more convenient. https://github.com/HankB/Ansible/tree/main/Pi On Pi 3/4 I usually use an SSD but I have a few zeroes that are more or less IoT devices and run from SD cards.
-
ERROR! Unexpected Exception, this is probably a bug: Unknown OpenSSL error ...
Yes, thanks - I meant to. https://github.com/HankB/Ansible/blob/0c4a1bce42f84acc4176624fed671ee460c683a6/Pi/provision-local.yml
-
Was Ansible Hard For You To Learn?
At one point (well before I finished the series) I decided to start doing rather than continue learning. My results have been very satisfying. (https://github.com/HankB/Ansible *) When I want to perform some task that I'm not familiar with, I check the online manual and/or search for examples. In that way my learning is more self directed. I do plan to get back to watching the series at some point but in the mean time my learning is more goal/self directed. I'm over the hump and at the point where Ansible is a useful tool. (I did not have any experience with other automation tools such as Chef or Puppet and my prior experience is as a S/W developer and not an administrator.)
rpi-clone
-
Considerations for a long-running Raspberry Pi
I've been running a bunch of Pi's for years now, and the biggest problem I've had is the Pi itself dying: 24/7 usage is hard on a small device. I've also found that stable power is essential, and to that end I've always used 5v 3a branded power cubes, plugged into a pure sine wave UPS. Choice of micro-SDHC cards is important and I ended up getting ATP industrial cards (https://www.atpinc.com/products/industrial-sd-cards) - expensive but really long-lived. Finally, using RPi-clone (https://github.com/billw2/rpi-clone) on a regular basis has been a life-saver. I clone to Sandisk Extreme micro-SDHCs and can recover from an outage in minutes.
- Cloning SD card in CLI to use in another pi question.
-
Boot Pi4 from an SSD, not the MicroSD card
I would normally use the Pi SD-Card copier to duplicate the SD-Card to an SSD but I'm unsure if this is available on the Ubuntu image - you could possibly use this program [Github] if you are not keen on using dd with a running system.
- DIY Raspberry / Orange Pi NAS That Looks Like a NAS β 2023 Edition
- 2022 Oct 31 π Stickied π ΅π °π & ππππππππ thread - Boot problems? Power supply problems? Display problems? Networking problems? Need ideas? Get help with these and other questions! π¨πΊπ² π―π¬πΉπ¬ ππ°πΉπΊπ»
-
Help needed on setting up Pi to boot from SSD
Then you will need to clone the SD to the SSD, you can use many tools that are available from your desktop computer or you can try with rpi-clone, just connect the SSD with Pi booted from SD, stop any possible service/docker to prevent any copy error and run, adapting device naming but usually will be (check device with dmesg):
-
Help needed on setting up Pi to boot from SSD..
I used rpi-clone, it was super easy. Whole process took 10 minutes. https://github.com/billw2/rpi-clone
- I wish I wouldβve switched to SSD Boot years ago
- Is it possible to convert an bootable sd to a bootable usb-ssd?
-
Finished my very own Smart Mirror!
rpi-clone
What are some alternatives?
pi-gen - Tool used to create the official Raspberry Pi OS images
TimeShift - System restore tool for Linux. Creates filesystem snapshots using rsync+hardlinks, or BTRFS snapshots. Supports scheduled snapshots, multiple backup levels, and exclude filters. Snapshots can be restored while system is running or from Live CD/USB.
comitup - Bootstrap Wifi support over Wifi
DietPi - Lightweight justice for your single-board computer!
86Box - Emulator of x86-based machines based on PCem.
PiShrink-to-Crontab - Raspberry; PiShrink to Crontab
Rufus - The Reliable USB Formatting Utility
log2ram - ramlog like for systemd (Put log into a ram folder)
multimon-ng
motioneye - A web frontend for the motion daemon.
shairport-sync - AirPlay and AirPlay 2 audio player
deskpi - DeskPi Pro is the Ultimate Case Kit for Raspberry Pi 4 with Full Size HDMI/2.5 Hard Disk Support and Safe Power Button, It has QC 3.0 Power Supply inside and New ICE Tower Cooler inside.