Re: best way to backup USB stick (2)

2014-06-01 Thread Andrew McGlashan
On 15/04/2014 12:34 AM, Hugo Vanwoerkom wrote: > PaulNM wrote: >> On 04/13/2014 10:16 PM, Hugo Vanwoerkom wrote: >> >> Specifically: usbDrive=/dev/sde1 >> >> You're not backing up and restoring usb drives, you're backing up and >> restoring a partition on usb drives. The partition table and bootlo

Re: best way to backup USB stick (2)

2014-04-14 Thread Hugo Vanwoerkom
PaulNM wrote: On 04/13/2014 10:16 PM, Hugo Vanwoerkom wrote: Hi, So I got a script that backs up the USB stick to a file and restores a (larger) USB stick from that file all using dd. It is here: http://paste.debian.net/93598 That's small enough that you should have included it in the emai

Re: best way to backup USB stick (2)

2014-04-13 Thread PaulNM
On 04/13/2014 10:16 PM, Hugo Vanwoerkom wrote: > Hi, > > So I got a script that backs up the USB stick to a file and restores a > (larger) USB stick from that file all using dd. It is here: > > http://paste.debian.net/93598 > That's small enough that you should have included it in the email, i

best way to backup USB stick (2)

2014-04-13 Thread Hugo Vanwoerkom
Hi, So I got a script that backs up the USB stick to a file and restores a (larger) USB stick from that file all using dd. It is here: http://paste.debian.net/93598 the relevant parts are the backup: dd conv=notrunc,noerror bs=4096 if=$usbDrive | gzip > $backupFilename and the restore: gz