Best way of backing up whole DietPi system (SSD) #5701
Replies: 8 comments 15 replies
-
I guess the question is going into some direction as this one on our forum https://dietpi.com/forum/t/create-a-backup-img-x86/14014 You could use |
Beta Was this translation helpful? Give feedback.
-
On another DietPi system, e.g. also from a VM or so, the DietPi-Imager can be used to create a compressed image from an attached drive. It shrinks filesystem and partition to create a minimal raw image file, before further compressing it as 7z archive: bash -c "$(curl -sSfL 'https://raw.githubusercontent.com/MichaIng/DietPi/master/.build/images/dietpi-imager')" From next release on (this Sunday), you can also skip the 7z-compression: export SKIP_ARCHIVE=1
bash -c "$(curl -sSfL 'https://raw.githubusercontent.com/MichaIng/DietPi/master/.build/images/dietpi-imager')" or have the contained partition and filesystem shrunk only, so that a cloning tool can be used to clone the drive to a smaller one: export SHRINK_ONLY=1
bash -c "$(curl -sSfL 'https://raw.githubusercontent.com/MichaIng/DietPi/master/.build/images/dietpi-imager')" Also from next release on, the |
Beta Was this translation helpful? Give feedback.
-
Also @MichaIng - I run note: I am logged in as |
Beta Was this translation helpful? Give feedback.
-
https://forums.raspberrypi.com/viewtopic.php?t=255134 Ah..... |
Beta Was this translation helpful? Give feedback.
-
thanks - yes - I changed it to |
Beta Was this translation helpful? Give feedback.
-
Does I just want take image copy of I trying to store the output ( img ) onto |
Beta Was this translation helpful? Give feedback.
-
Thanks - good to know how to set the destination ! I think that I am starting to understand the problem: If I were to use:
It will still need 160gb of space to put the file somewhere - even if later the zip process will crunch that down to something under 14gb. So without that amount of space at the beginning step, it is just never going to work.... Is that a fair summary of the problem I am facing ? |
Beta Was this translation helpful? Give feedback.
-
I guess I could update: ok - I did all that and it worked 😁👍
|
Beta Was this translation helpful? Give feedback.
-
Hi guys,
Unfortunately many months of work has disappeared after running the command rpi-update (yes beginners mistake) it soft bricked my Pi and nothing worked so I had to start fresh with a new image.
Sadly my DietPi backup I made didn't work as it warned of a UUID mismatch "warning uuids of the backup and current system differ", I tried anyway and yes it didn't work.
Going forward I do not wish to repeat this...
Sadly even my Portainer backup was completely useless. So I having to setup everything from complete scratch again.
What method are you guys using for a full SSD backup or "clone"?
Beta Was this translation helpful? Give feedback.
All reactions