You are not logged in.

#1 2014-12-22 20:58:09

stevepa
Member
From: Texas USA
Registered: 2012-02-12
Posts: 113

Backup NTFS files to Linux FS using tar

I would like to use tar to backup Windows files and restore them.
Is it better to backup Windows using a native program?
Or, will tar work ok?

Details:
I have a partition that I formatted NTFS that I use for Windows and Linux sharing (128GB).

I would like to backup these files with tar and store the backup on a Linux FS.

I tested this scenario:

tar cvzpf /root/winfiles.tgz mnt/Winshare

where Winshare is a NTFS partition.

Comparing permissions pre backup and post restore, seem to be the same from Linux and Windows perspectives.

Is this a useable tar command to do this?
Any comments welcome.
Tks
Steve.

PS
Review of wiki and forums was not especially useful.

Last edited by stevepa (2014-12-22 20:59:06)


Arch - LVM - ext4 - gnome (T60p 14.1 1400p  x86_64), (T60 15 flexview 1400p i686)

Offline

#2 2014-12-22 21:07:45

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: Backup NTFS files to Linux FS using tar

Dunno how NTFS permissions are or are not honored by tar...


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2014-12-22 21:32:51

the_shiver
Member
Registered: 2013-03-27
Posts: 130

Re: Backup NTFS files to Linux FS using tar

is backing up the entire partition an option? if yes maybe https://wiki.archlinux.org/index.php/Partclone (only backs up used clusters)

Offline

#4 2014-12-22 22:17:08

stevepa
Member
From: Texas USA
Registered: 2012-02-12
Posts: 113

Re: Backup NTFS files to Linux FS using tar

@the_silver,

The thought crossed my mind to do a partition clone like you describe, but I thought why a another tool when tar might just work fine.

I think I saw a similar technique where dd was piped to gzip to create a compressed file also.

I will investigate tar more, and if it presents a problem, I will consider partclone.

Linux is great because you have so many potential ways to solve a problem.

tks
steve.


Arch - LVM - ext4 - gnome (T60p 14.1 1400p  x86_64), (T60 15 flexview 1400p i686)

Offline

#5 2014-12-22 22:45:35

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,362

Re: Backup NTFS files to Linux FS using tar

pkZip does preserve NTFS, and of course is more readily readable in Windows than tar.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#6 2014-12-22 23:18:16

nstgc
Member
Registered: 2014-03-17
Posts: 393

Re: Backup NTFS files to Linux FS using tar

Looking at PartClone, would I then be able to restore the partition and still be able to use Windows? I like to reinstall Windows every now and then, but it would sure be easier to just copy a fresh install over the old one. I tried something that before using dd, but it failed. Windows wouldn't recognize it as a legitimate installation.

Offline

#7 2014-12-23 00:25:53

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,362

Re: Backup NTFS files to Linux FS using tar

There's a disk signature in there somewhere.  Then it has to be in the exact place where the parition was, and etc.   I always just squeeze Windows down, so it's not taking up the whole drive and dual booting back and forth.  This is too much effort to just have windows around, just squeeze the partition, and put Linux on it in the empty space.
Of course, you could just leave windows as is, and PXE boot into ArchLinux from an ArchLinux host, and then Windows can be its' own backed up archive.  (Re)Installing Windows is just too much of a pain to do that everytime.

Last edited by nomorewindows (2014-12-23 00:27:16)


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#8 2015-03-04 05:23:53

thisllub
Member
From: Northern NSW Australia
Registered: 2007-12-28
Posts: 231

Re: Backup NTFS files to Linux FS using tar

There is a real problem backing up any windows files that has to do with short filenames.
I have seen it with Tivoli on an SQL Server system that totally stumped the Windows guys.
It was obvious to me.

Some MSoftware like uses short filenames in the registry.
e.g.
"\Program Files\Microsoft SQLServer" = PROGRA~1
"\Program Files\Microsoft Office" = PROGRA~2

on restore
"\Program Files\Microsoft SQLServer" = PROGRA~2
"\Program Files\Microsoft Office" = PROGRA~1

Offline

Board footer

Powered by FluxBB