Which you can also see in the log - Therefore, I do not understand openmediavault mount it

Code: Select all
root@kir1:~# odroid-backup.pl
Can't call method "msgbox" on an undefined value at /usr/local/bin/odroid-backup.pl line 936.
Code: Select all
root@kir1:~# apt install libui-dialog-perl
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libui-dialog-perl
Code: Select all
sudo perl -MCPAN -e 'install UI::Dialog'
Code: Select all
$ sudo apt-get install zenity dialog libnumber-bytes-human-perl libjson-perl fsarchiver udev util-linux coreutils partclone parted
$ sudo perl -MCPAN -e 'install UI::Dialog'
mtd-utils
? Running the script with no arguments (or just --backup
) provided no output, until I ran it with --text
, at which point the (ncurses?) GUI rendered and told me what was missing.--text
setting, I cannot restore a backup./.
entry there, I get a log of the backup process displayed in ncurses, but no restore action.Code: Select all
root@XU4CS2T:/srv/samba/Stick60G/eMMC_backup# odroid-backup.pl --restore --disk mmcblk0 --partitions bootloader,mbr,1,2 --directory 20190205
Disk mmcblk0 is not a valid disk. Valid options are: sdb at /usr/local/bin/odroid-backup.pl line 559.
Code: Select all
root@XU4CS2T:/srv/samba/Stick60G/eMMC_backup# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 1.8T 0 disk
└─sda1 8:1 0 1.8T 0 part
sdb 8:16 1 60.1G 0 disk
├─sdb1 8:17 1 4G 0 part
└─sdb2 8:18 1 56.1G 0 part /srv/samba/Stick60G
mmcblk0 179:0 0 58.2G 0 disk
├─mmcblk0p1 179:1 0 128M 0 part
└─mmcblk0p2 179:2 0 58.1G 0 part
mmcblk0boot0 179:16 0 4M 1 disk
mmcblk0boot1 179:32 0 4M 1 disk
mmcblk0rpmb 179:48 0 4M 0 disk
mmcblk1 179:64 0 14.9G 0 disk
├─mmcblk1p1 179:65 0 128M 0 part /media/boot
└─mmcblk1p2 179:66 0 14.7G 0 part /
-a
to show all disks, because mmcblk0 is not considered removable by default.--text -a
when doing backups for the exact same reason, but I overlooked that it is missing in my 'restore' command line.Code: Select all
sudo ./odroid-backup.pl -a --restore --directory /path/to/backup/dir --disk /dev/sdd --partitions mbr,bootloader,1,2
That sounds odd.. I use it all the time over different OSes (including Ubuntu), can you give me an example what you tried was it the filebrowser example and under which OS?
You can specify some parameters and what is missing should be asked interactively.Non-interactive operation
Here's how to use it in non-interactive mode. You will need to set the following parameters:
--backup -- to do a backup, or
--restore -- to do a restore. Both backup and restore are incompatible at the same time for obvious reasons
--disk sdc -- The disk name (without /dev) is validated and an error is printed if that name doesn't exist in your system. Valid options are shown in case you input something wrong
--partitions bootloader,mbr,/dev/sdc1 -- A comma separated list (with no spaces) of the partitions you want to backup or restore. Valid options are shown in case you input something wrong. When restoring, the partition names have only the number - e.g. bootloader,mbr,1,2
--directory -- The directory to backup to or to restore from. If it doesn't exist it will be created. Previous backups inside will be overwritten with no warning.
Example usage:
Backup
sudo odroid-backup.pl --backup --disk sdc --partitions bootloader,mbr,/dev/sdc1,/dev/sdc2 --directory backup-emmc
sudo odroid-backup.pl --backup --disk mmcblk0 --partitions bootloader,mbr,/dev/mmcblk0p1,/dev/mmcblk0p2 --directory backup-emmc
Restore
sudo odroid-backup.pl --restore --disk sdc --partitions bootloader,mbr,1,2 --directory backup-emmc
sudo odroid-backup.pl --restore --disk mmcblk0 --partitions bootloader,mbr,1,2 --directory backup-emmc
Code: Select all
db@odroid ~ ❯❯❯ sudo odroid-backup.pl --backup --disk mmcblk0 --partitions bootloader,mbr,/dev/mmcblk0p1,/dev/mmcblk0p2 --directory backup-emmc
DBG: rc=0
Disk mmcblk0 is not a valid disk. Valid options are: at /usr/local/bin/odroid-backup.pl line 129, <NAND> line 0.000000.
db@odroid ~ ❯❯❯ ls /dev/mmc*
/dev/mmcblk0 /dev/mmcblk0boot0 /dev/mmcblk0boot1 /dev/mmcblk0p1 /dev/mmcblk0p2 /dev/mmcblk0rpmb
db@odroid ~ ❯❯❯
Code: Select all
CTRL+ALT+T
you are in /home/michele
sudo apt-get install mtd-utils
sudo wget -O /usr/local/bin/odroid-backup.pl https://raw.githubusercontent.com/mad-ady/odroid-backup/master/odroid-backup.pl
sudo chmod a+x /usr/local/bin/odroid-backup.pl
sudo apt-get install libui-dialog-perl zenity dialog libnumber-bytes-human-perl libjson-perl fsarchiver udev util-linux coreutils partclone parted
sudo su
mkdir backup-emmc
sudo /usr/local/bin/odroid-backup.pl --backup --disk sdc --partitions bootloader,mbr,/dev/sdc1,/dev/sdc2 --directory /home/michele/backup-emmc
sudo umount /dev/sdb -v
sudo umount /dev/sdb1 -v
sudo umount /dev/sdb2 -v
sudo /usr/local/bin/odroid-backup.pl --restore --disk sdb --partitions bootloader,mbr,1,2 --directory /home/michele/backup-emmc
That is why I use backuppc from a different ODROID to backup my data. It will use rsync to do it's daily backups but also keeps a history so you have access to older files, even if your files got corrupted you can just go back a couple of days and get that file.ab1jx wrote: ↑Fri Jul 19, 2019 11:49 amPiclone and clonezilla are also options. But those are for full backups. Daily use of rsynch will copy just what's changed, it overwrites a copy of a file if the date and size are different. You could keep a spare SD plugged into a USB reader and write scripts to mount it, do backups with rsynch, unmount it again, call that from a cron job so you don't forget to do it. Or use a hard drive.
But if a good version of a file gets automatically overwritten by a bad one you're sunk.
Code: Select all
There are 6 hosts that have been backed up, for a total of:
20 full backups of total size 4868.51GB (prior to pooling and compression),
30 incr backups of total size 73.21GB (prior to pooling and compression).
Code: Select all
Pool is 583.36GB comprising 8328093 files and 4369 directories (as of 2019-07-18 21:24),
Code: Select all
sudo odroid-backup.pl
Code: Select all
sudo odroid-backup.pl -a
at a command prompt. Lately I use it mostly for setting up swap files. IF is input file, which can also be a SD or disk or partition. OF is output file, same types apply. To make a swap file you copy from /dev/zero, which gets a stream of zeroes to a file that becomes the swap file. dd can copy a disk or partition to a file, or vice versa. BS is block size, the default will work but something like 1M (1,000,000 bytes) at a time is faster. status=progress is optional, otherwise it looks like nothing is happening for an hour or so. Don't mount the sd dd is copying to so it treats it as a block device. It should copy every byte from the mmc to the sd. I was a noob about 1995 but I learned fast enough to make a living with what I was learning, retired and bored now.man dd
Code: Select all
sudo mkdir backup-emmc
sudo odroid-backup.pl -a --backup --disk mmcblk0 --partitions bootloader,mbr,/dev/mmcblk0p1,/dev/mmcblk0p2 --directory backup-emmc
Code: Select all
sudo odroid-backup.pl -a --restore --disk mmcblk1 --partitions bootloader,mbr,1,2 --directory backup-emmc
Users browsing this forum: No registered users and 0 guests