You are not logged in.

#1 2007-02-11 14:15:33

iKevin
Member
From: Ann Arbor, MI
Registered: 2003-07-20
Posts: 132

What is the best strategy to back up to a USB drive?

Hi All

I am going to buy a USB drive for backup and have a few questions that might have been worked out by others.  These drives come pre-formatted with vfat.  My first inclination would be to use rsync to perform the backup but vfat can't hold all of the permissions, ownership, etc. that are required.   I think I would end up in trouble with tar as well.  Ultimately, the tar file would be too large.  Thus, I guess I would have to break it up somehow.  Anyways, is there a good strategy for performing such a backup?

Thanks
Kev

Last edited by iKevin (2007-02-11 14:48:06)

Offline

#2 2007-02-11 16:47:09

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,932
Website

Re: What is the best strategy to back up to a USB drive?

would it be that much of a problem to reformat drive to ext3 or something more Linux friendly .....?


Mr Green

Offline

#3 2007-02-11 17:04:21

harlekin
Member
From: Germany
Registered: 2006-07-13
Posts: 408

Re: What is the best strategy to back up to a USB drive?

I suggest to format it to ext3 or ext2 as well.

If you want to leave vfat on it and want to copy your partition 1 to 1, you may be interested in dd. But I am not sure if something like this really is handy and not too dagerous.

dd if=/dev/hda1 -of=backup

Hail to the thief!

Offline

#4 2007-02-11 18:37:14

bpisciot
Member
From: Flyover Land
Registered: 2004-12-16
Posts: 78

Re: What is the best strategy to back up to a USB drive?

You might also look into Unison file synchronizer.  It's available in extra.  I think it will work with vfat.  It puts a graphical layer onto rsync.  I've used it to sync files between two machines connected via NFS and with a usb drive.  Works great for me.

Bob


"You're only young once, but you can always be immature."

Offline

#5 2007-02-11 18:44:16

sash
Member
Registered: 2005-10-16
Posts: 155

Re: What is the best strategy to back up to a USB drive?

if you want to keep the vfat I'd suggest making tar.gz archives

Offline

#6 2007-02-11 19:05:28

smoon
Member
Registered: 2005-08-22
Posts: 468
Website

Re: What is the best strategy to back up to a USB drive?

sash wrote:

if you want to keep the vfat I'd suggest making tar.gz archives

I agree. Otherwise I'd go for rsnapshot.

Offline

#7 2007-02-11 20:40:26

iKevin
Member
From: Ann Arbor, MI
Registered: 2003-07-20
Posts: 132

Re: What is the best strategy to back up to a USB drive?

Thanks for all of the great replies.  I would like to leave it vfat so that I can also back up my wife's Windows machine.  rsnapshot looks very interesting. 

Thanks
Kevin

Offline

#8 2007-02-12 00:11:20

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: What is the best strategy to back up to a USB drive?

If you keep vfat on your usb drive you should try the new "flush" option for mounting (just replace "async" or "sync" in /etc/fstab or anywhere else with "flush").

It will write files down right after copying which should improve tolerance for power downs and accidental data loss of cached files. Not mentioning you'll be able to unplug the drive without any actions.

Offline

#9 2007-02-12 21:24:10

proc
Member
From: Italy
Registered: 2006-11-27
Posts: 71

Re: What is the best strategy to back up to a USB drive?

bpisciot wrote:

You might also look into Unison file synchronizer.  It's available in extra.  I think it will work with vfat.  It puts a graphical layer onto rsync.  I've used it to sync files between two machines connected via NFS and with a usb drive.  Works great for me.

Bob

Only to clarify things: Unison doesn't use rsync, but its own algorithms which are more advanced than rsync (can cope with updates to both replicas of your data)
I point this because someone may think it is only a frontend to rsync and miss this good opportunity.

Offline

#10 2007-02-12 23:13:26

iKevin
Member
From: Ann Arbor, MI
Registered: 2003-07-20
Posts: 132

Re: What is the best strategy to back up to a USB drive?

JUst a quick question so that I understand.  Can unison backup unix files to vfat and recover those files with the correct permissions and ownership?  I guess that would imply the unison would store extra metadata for files copied to the vfat partition.

Thanks
Kev

Offline

#11 2007-02-13 12:55:03

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: What is the best strategy to back up to a USB drive?

How about manual? :-)

Permissions
Synchronizing the permission bits of files is slightly tricky when two different filesytems are involved (e.g., when synchronizing a Windows client and a Unix server). In detail, here's how it works:
When the permission bits of an existing file or directory are changed, the values of those bits that make sense on both operating systems will be propagated to the other replica. The other bits will not be changed.
When a newly created file is propagated to a remote replica, the permission bits that make sense in both operating systems are also propagated. The values of the other bits are set to default values (they are taken from the current umask, if the receiving host is a Unix system).
For security reasons, the Unix setuid and setgid bits are not propagated.
The Unix owner and group ids are not propagated. (What would this mean, in general?) All files are created with the owner and group of the server process.

EDIT:
I'd suggest reading this and/or this and/or this first to find which backup system is the best for you.
There are many programs which should work in your case you and many "meta" systems that should make it easier to configure (like backupninja for example).

I think you should also reconsider using vfat. It's not the best choice for a backup system. Ext3 would do much better and make it much simplier. You can always reformat the hd back to vfat under linux. For large hds it's actually easier to do that under linux (XP has a 35 GB limit when formatting vfat partitions...).

Last edited by lanrat (2007-02-13 13:50:34)

Offline

#12 2007-04-27 12:17:31

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 674
Website

Re: What is the best strategy to back up to a USB drive?

lanrat wrote:

(couic)
I think you should also reconsider using vfat. It's not the best choice for a backup system. Ext3 would do much better and make it much simplier. You can always reformat the hd back to vfat under linux. For large hds it's actually easier to do that under linux (XP has a 35 GB limit when formatting vfat partitions...).

Actually you do not need to reformat an ext2/3 partition to use it under Windows, as it is quite easy now to add ext2/3 support to Windows 2k/XP/Vista with Ext2fsd driver for Windowssmile


Seeded last month: Arch 50 gig, derivatives 1 gig
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop #1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery smile) #2: ARM Tegra K1, 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9

Offline

Board footer

Powered by FluxBB