l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2007 Oct 19 13:26

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] Copying data from Windows share to Linux server*with* original date stamps and permissions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] Copying data from Windows share to Linux server*with* original date stamps and permissions

On Fri, 19 Oct 2007 11:19:47 -0700
Richard Burkhart <richard@khanfusion.net> wrote:

> Anyone have suggestions on a set of shell commands I can pipe
> together to:
>   - Batch transfer multiple files & directories from a windows
> (server 2000) machine onto a Linux machine
>   - Maintain as many of the original file permissions as will make it 
> across the samba link
>   - Maintain the original file save dates from the windows side (the 
> first time I did a mass cp, it changed all the target-file dates to
> the day of the copy)
>   - Set the archive bit on the source media, so that if I have to do 
> this again to catch updates I can just grab updated files.
> Last night google led me to a website describing a way to start with 
> tar, pipe that output to a couple of  commands to transfer to the new 
> machine, then un-tar it out to the new drive.  Unfortunately, I can't 
> find that page again -- and until I go home, I won't be able to check
> my browser history.

(cd /src-dir; tar cf - *) | (cd /target-dir; tar xpf -)

p is the flag to preserve permissions when extracting.


Ken Bloom. PhD candidate. Linguistic Cognition Laboratory.
Department of Computer Science. Illinois Institute of Technology.

Attachment: signature.asc
Description: PGP signature

vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Sunset Systems
Who graciously hosts our website & mailing lists!