I have installed OpenMediaVault and a bunch of Docker services.

Is it possible to clone everything on my microSD, and put it in my SSD, and then boot from the SSD as if nothing changed?

I’m asking because microSD cards don’t last long.

Edit: Using a Raspberry Pi 4 Model B 8GB with the Argon Eon case

@[email protected]
link
fedilink
English
1
edit-2
2Y

I would argue that rsync is better suited to clone your file system when using linux. Just prepare the partitions (plus point: you can alter partition sizes and reorganise like having a new partition (or even device) for your /home or whatever) and mount them, then

sudo rsync -ahPHAXx --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found} / /mnt

Then fix your fstab and reinstall your boot loader. Way faster than dd and can be done on a running system.

Qazwsxedcrfv000
link
fedilink
English
02Y

Your preference may vary but I would not recommend anyone trying to “clone” anything on a running system.

@[email protected]
link
fedilink
English
12Y

Why not? Of course you should not install or uninsta anything while rsync runs…

Create a post

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.

Rules:

  • Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.
  • No spam posting.
  • Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.
  • Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).
  • No trolling.

Resources:

> Any issues on the community? Report it using the report flag.

> Questions? DM the mods!

  • 1 user online
  • 218 users / day
  • 9 users / week
  • 244 users / month
  • 841 users / 6 months
  • 0 subscribers
  • 542 Posts
  • 8.93K Comments
  • Modlog