Hello,
Thank-you for your suggestions re. the partitioning of the USB in
response to my previous email.
Note that I'm not especially concerned with restoring the USB
exactly - with all its partitions, etc. It's a standard USB which
was formatted on a windows machine to be a Live Fedora 32 stick.
But prior to this I'd backed it up with duplicity simply by
plugging into my Fedora machine when the weekly back-up was
scheduled. It's true that even before it become the Live Fedora 32
stick, it was a Live USB anyway. When I plugged it into the
computer then I'd have a panel pop-up saying: 'Contains software.
Would you like to run it?' But more importantly, there was data on
it - in the data partition.
The restored USB could be reformatted to be a single large volume
as has been suggested. I'm not clear if duplicity would only have
backed-up the data partition on the USB (volume name '7160-75C1').
In a sense, it doesn't matter as the data is the part that matters
and that remains in the archive which duplicity created. Does that
all make sense?
This leads me to the use of duplicity. I notice a man entry for it here: https://linux.die.net/man/1/duplicity
duplicity restore [options] source_url target_directory
I couldn't understand how to use this command! My first unknown
is the source URL. I'm using a external USB hardisk 'MyPassport'
on /dev/sda1 for the duplicity archive.
Is it source file:///dev/sda1/Deja-Vu-Back-up where
Deja-Vu-Back-up is the directory with the back-ups??
Somehow, I need to pass the name of the backed-up USB volume ('7160-75C1') too. Note that it's all the data contents of the the volume. Then there's the target directory too - anywhere in my hard disk in the home/user directory will do - on a standard Fedora setup.
Thanks for all your help and advice.
-------- Forwarded Message --------
Subject: | re. Restoring a USB back-up using Back-ups (Duplicity) |
---|---|
Date: | Wed, 6 May 2020 21:11:15 +0100 |
From: | Andrew Wood <andrew@xxxxxxxxxx> |
To: | users@xxxxxxxxxxxxxxxxxxxxxxx |
Thanks for this reply ... I should have said that the USB drive I mentioned (/run/media/awood/7160-75C1 ) was previously a bootable USB and partitioned as such. This leads me to wonder if I can simply rename the volume (is that the correct term?) to the previous name and then use Duplicity? But what's the parameters for a restore on this USB with this name?Thanks for your help and assistance.AndrewDate: Wed, 6 May 2020 12:15:32 -0700 From: Samuel Sieb <samuel@xxxxxxxx> Subject: Re: Restoring a USB back-up using Back-ups (Duplicity) on Fedora To: users@xxxxxxxxxxxxxxxxxxxxxxx Message-ID: <a09052d2-9abc-a40d-82a5-8dc4670c2b31@xxxxxxxx> Content-Type: text/plain; charset=utf-8; format=flowed On 5/6/20 11:38 AM, Andrew Wood wrote:
I had a USB flash drive which I backed using Back-ups (Duplicity) on Fedora 31. The USB volume was called /run/media/awood/7160-75C1 I then used the same USB flash drive to create a Fedora 32 Live Image on it. After this, the USB volume was called /run/media/awood/Fedora-WS-Live-32-1-6 How do I restore the contents of the USB flash drive so that it has the same contents as the /run/media/awood/7160-75C1 ??
You need to reformat it with the original filesystem id. Open a terminal and use "fdisk -l" to make sure you have the right device. I'm going to assume the drive is /dev/sdb and only has one partition. Make sure it's unmounted by running: umount /run/media/awood/Fedora-WS-Live-32-1-6 Don't click the eject button because that will also disconnect it from USB. Then run "sudo mkfs.fat -i 716075C1 /dev/sdb1". Replug the device and it should come up as before. ------------------------------
_______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx